You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Simone Tripodi <si...@apache.org> on 2012/02/19 22:34:15 UTC

Re: svn commit: r1291065 - /commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/shortestpath/DefaultHeuristicBuilder.java

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,  <ma...@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