commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simone Tripodi <simonetrip...@apache.org>
Subject Re: svn commit: r1291065 - /commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/shortestpath/DefaultHeuristicBuilder.java
Date Sun, 19 Feb 2012 21:34:15 GMT
Hi again,

it is a good practice adding a comment why the warning can be
suppressed, please add one!

TIA,
-Simo

http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/



On Sun, Feb 19, 2012 at 10:28 PM,  <marcosperanza@apache.org> wrote:
> 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 )
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message