commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1240991 - /commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/spanning/SuperVertex.java
Date Mon, 06 Feb 2012 12:02:43 GMT
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();
     }
+
 }



Mime
View raw message