You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2011/06/11 23:23:38 UTC
svn commit: r1134766 -
/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/UndirectedGraphImpl.java
Author: simonetripodi
Date: Sat Jun 11 21:23:38 2011
New Revision: 1134766
URL: http://svn.apache.org/viewvc?rev=1134766&view=rev
Log:
removed unnecessary 'else' clause
Modified:
commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/UndirectedGraphImpl.java
Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/UndirectedGraphImpl.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/UndirectedGraphImpl.java?rev=1134766&r1=1134765&r2=1134766&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/UndirectedGraphImpl.java (original)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/UndirectedGraphImpl.java Sat Jun 11 21:23:38 2011
@@ -169,10 +169,7 @@ public class UndirectedGraphImpl<V exten
{
return unmodifiableSet( edgeVerts.get( e ) );
}
- else
- {
- return new HashSet<V>();
- }
+ return new HashSet<V>();
}
/**
@@ -192,10 +189,7 @@ public class UndirectedGraphImpl<V exten
{
return unmodifiableSet( vertEdges.get( v ) );
}
- else
- {
- return new HashSet<WE>();
- }
+ return new HashSet<WE>();
}
public void setWeight( WE e, Number w )
@@ -214,10 +208,7 @@ public class UndirectedGraphImpl<V exten
{
return edgeWeights.get( e );
}
- else
- {
- return 1;
- }
+ return 1;
}
/**