commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marcospera...@apache.org
Subject svn commit: r1291065 - /commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/shortestpath/DefaultHeuristicBuilder.java
Date Sun, 19 Feb 2012 21:28:47 GMT
Author: marcosperanza
Date: Sun Feb 19 21:28:47 2012
New Revision: 1291065

URL: http://svn.apache.org/viewvc?rev=1291065&view=rev
Log:
Added SuppressWarning annotation

Modified:
    commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/shortestpath/DefaultHeuristicBuilder.java

Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/shortestpath/DefaultHeuristicBuilder.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/shortestpath/DefaultHeuristicBuilder.java?rev=1291065&r1=1291064&r2=1291065&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/shortestpath/DefaultHeuristicBuilder.java
(original)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/shortestpath/DefaultHeuristicBuilder.java
Sun Feb 19 21:28:47 2012
@@ -92,6 +92,7 @@ final class DefaultHeuristicBuilder<V ex
 
             closedSet.add( current );
 
+            @SuppressWarnings( "unchecked" )
             Iterable<V> connected = ( graph instanceof DirectedGraph ) ? ( (DirectedGraph<V,
WE>) graph ).getOutbound( current )
                                                                        : graph.getConnectedVertices(
current );
             for ( V v : connected )



Mime
View raw message