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 2012/02/06 13:02:43 UTC

svn commit: r1240991 - /commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/spanning/SuperVertex.java

Author: simonetripodi
Date: Mon Feb  6 12:02:42 2012
New Revision: 1240991

URL: http://svn.apache.org/viewvc?rev=1240991&view=rev
Log:
SuperVertex members can be final

Modified:
    commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/spanning/SuperVertex.java

Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/spanning/SuperVertex.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/spanning/SuperVertex.java?rev=1240991&r1=1240990&r2=1240991&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/spanning/SuperVertex.java (original)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/spanning/SuperVertex.java Mon Feb  6 12:02:42 2012
@@ -44,13 +44,13 @@ class SuperVertex<V extends Vertex, W, W
     implements Iterable<V> {
 
     /** The reference to the graph. */
-    private G graph;
+    private final G graph;
 
     /** The set of vertices combined in this {@link SuperVertex}. */
-    private Set<V> vertices;
+    private final Set<V> vertices;
 
     /** The ordered set of edges to other {@link SuperVertex} objects. */
-    private TreeSet<WE> orderedEdges;
+    private final TreeSet<WE> orderedEdges;
 
     /**
      * Create a new {@link SuperVertex} instance with <code>source</code>
@@ -110,4 +110,5 @@ class SuperVertex<V extends Vertex, W, W
     public WE getMinimumWeightEdge() {
         return orderedEdges.pollFirst();
     }
+
 }