commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1357191 - /commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/collections/FibonacciHeapNode.java
Date Wed, 04 Jul 2012 09:24:52 GMT
Author: simonetripodi
Date: Wed Jul  4 09:24:51 2012
New Revision: 1357191

URL: http://svn.apache.org/viewvc?rev=1357191&view=rev
Log:
element.toString() can be safety invoked since the FibonacciHeap prevents the addition of
null elements

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

Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/collections/FibonacciHeapNode.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/collections/FibonacciHeapNode.java?rev=1357191&r1=1357190&r2=1357191&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/collections/FibonacciHeapNode.java
(original)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/collections/FibonacciHeapNode.java
Wed Jul  4 09:24:51 2012
@@ -233,7 +233,7 @@ final class FibonacciHeapNode<E>
     @Override
     public String toString()
     {
-        return String.valueOf( element );
+        return element.toString();
     }
 
 }



Mime
View raw message