File: collections15-to-4

package info (click to toggle)
trinityrnaseq 2.2.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 212,452 kB
  • ctags: 5,067
  • sloc: perl: 45,552; cpp: 19,678; java: 11,865; sh: 1,485; makefile: 613; ansic: 427; python: 313; xml: 83
file content (16 lines) | stat: -rw-r--r-- 736 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: compatibility fix due to use of newer libcommons-collections4-java
Author: Michael R. Crusoe <mcrusoe@msu.edu>
Forwarded: no
Last-Updated: 2015-02-22

--- a/Butterfly/src/src/edu/uci/ics/jung/algorithms/shortestpath/DijkstraDistanceWoVer.java
+++ b/Butterfly/src/src/edu/uci/ics/jung/algorithms/shortestpath/DijkstraDistanceWoVer.java
@@ -97,7 +97,7 @@
 				{
 					if (!w.equals(verToExclude) && !sd.distances.containsKey(w))
 					{
-						double edge_weight = nev.transform(e).doubleValue();
+						double edge_weight = ((Number) nev.transform(e)).doubleValue();
 						if (edge_weight < 0)
 							throw new IllegalArgumentException("Edges weights must be non-negative");
 						double new_dist = v_dist + edge_weight;