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/12 00:20:26 UTC

svn commit: r1134797 - /commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/DirectedGraphImpl.java

Author: simonetripodi
Date: Sat Jun 11 22:20:25 2011
New Revision: 1134797

URL: http://svn.apache.org/viewvc?rev=1134797&view=rev
Log:
clause moved outside 'else' statements when unneeded

Modified:
    commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/DirectedGraphImpl.java

Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/DirectedGraphImpl.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/DirectedGraphImpl.java?rev=1134797&r1=1134796&r2=1134797&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/DirectedGraphImpl.java (original)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/DirectedGraphImpl.java Sat Jun 11 22:20:25 2011
@@ -213,10 +213,7 @@ public class DirectedGraphImpl<V extends
         {
             return unmodifiableSet(inbound.get(v));
         }
-        else
-        {
-            return new HashSet<WE>();
-        }
+        return new HashSet<WE>();
     }
 
     /**
@@ -228,10 +225,7 @@ public class DirectedGraphImpl<V extends
         {
             return unmodifiableSet(outbound.get(v));
         }
-        else
-        {
-            return new HashSet<WE>();
-        }
+        return new HashSet<WE>();
     }
 
 
@@ -406,10 +400,7 @@ public class DirectedGraphImpl<V extends
         {
             return edgeWeights.get(e);
         }
-        else
-        {
-            return 1.0;
-        }
+        return 1.0;
     }
 
     /**