commons-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1145420&view=rev
Log:
removed yet another redundant 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=1145420&r1=1145419&r2=1145420&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:14:31 2011
@@ -91,7 +91,7 @@ public final class FibonacciHeap<E>
         FibonacciHeapNode<E> node = new FibonacciHeapNode<E>( e );
 
         // if min[H] = NIL
-        if ( minimumNode == null )
+        if ( isEmpty() )
         {
             // then min[H] <- x
             minimumNode = node;



Mime
View raw message