commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1154231 - /commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/collections/FibonacciHeap.java
Date Fri, 05 Aug 2011 14:13:50 GMT
Author: simonetripodi
Date: Fri Aug  5 14:13:49 2011
New Revision: 1154231

URL: http://svn.apache.org/viewvc?rev=1154231&view=rev
Log:
suppressed Comparable cast warning

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=1154231&r1=1154230&r2=1154231&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
Fri Aug  5 14:13:49 2011
@@ -534,6 +534,7 @@ public final class FibonacciHeap<E>
         {
             return comparator.compare( o1.getElement(), o2.getElement() );
         }
+        @SuppressWarnings( "unchecked" ) // it will throw a ClassCastException at runtime
         Comparable<? super E> o1Comparable = (Comparable<? super E>) o1.getElement();
         return o1Comparable.compareTo( o2.getElement() );
     }



Mime
View raw message