commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1134799 - /commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/DirectedGraphImpl.java
Date Sat, 11 Jun 2011 22:22:54 GMT
Author: simonetripodi
Date: Sat Jun 11 22:22:53 2011
New Revision: 1134799

URL: http://svn.apache.org/viewvc?rev=1134799&view=rev
Log:
internal collections can be final

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=1134799&r1=1134798&r2=1134799&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:22:53 2011
@@ -49,21 +49,21 @@ public class DirectedGraphImpl<V extends
 {
     private Vertex root = null;
 
-    private Set<V> vertices = new HashSet<V>();
+    private final Set<V> vertices = new HashSet<V>();
 
-    private Set<WE> edges = new HashSet<WE>();
+    private final Set<WE> edges = new HashSet<WE>();
 
-    private List<Contract> contracts = new ArrayList<Contract>();
+    private final List<Contract> contracts = new ArrayList<Contract>();
 
-    private Map<V, Set<WE>> inbound = new HashMap<V, Set<WE>>();//
VERTEX X SET( EDGE )
+    private final Map<V, Set<WE>> inbound = new HashMap<V, Set<WE>>();//
VERTEX X SET( EDGE )
 
-    private Map<V, Set<WE>> outbound = new HashMap<V, Set<WE>>();//
- " " -
+    private final Map<V, Set<WE>> outbound = new HashMap<V, Set<WE>>();//
- " " -
 
-    private Map<WE, V> edgeSource = new HashMap<WE, V>();// EDGE X VERTEX
+    private final Map<WE, V> edgeSource = new HashMap<WE, V>();// EDGE X VERTEX
 
-    private Map<WE, V> edgeTarget = new HashMap<WE, V>();// EDGE X TARGET
+    private final Map<WE, V> edgeTarget = new HashMap<WE, V>();// EDGE X TARGET
 
-    private Map<WE, Number> edgeWeights = new HashMap<WE, Number>();// EDGE X
WEIGHT
+    private final Map<WE, Number> edgeWeights = new HashMap<WE, Number>();//
EDGE X WEIGHT
 
     /**
      * Constructor for the DirectedGraphImpl object



Mime
View raw message