commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1145419 - /commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/collections/FibonacciHeap.java
Date Tue, 12 Jul 2011 01:13:41 GMT
Author: simonetripodi
Date: Tue Jul 12 01:13:40 2011
New Revision: 1145419

URL: http://svn.apache.org/viewvc?rev=1145419&view=rev
Log:
removed duplicated code

Modified:
    commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/collections/FibonacciHeap.java

Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/collections/FibonacciHeap.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/collections/FibonacciHeap.java?rev=1145419&r1=1145418&r2=1145419&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/collections/FibonacciHeap.java
(original)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/collections/FibonacciHeap.java
Tue Jul 12 01:13:40 2011
@@ -258,7 +258,7 @@ public final class FibonacciHeap<E>
     {
         // FIB-HEAP-EXTRACT-MIN(H)
 
-        if ( minimumNode == null )
+        if ( isEmpty() )
         {
             return null;
         }



Mime
View raw message