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/03/02 21:52:20 UTC

svn commit: r1296451 - /commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/

Author: simonetripodi
Date: Fri Mar  2 20:52:20 2012
New Revision: 1296451

URL: http://svn.apache.org/viewvc?rev=1296451&view=rev
Log:
just added javadoc comments to specify that data structures are not thread safe

Modified:
    commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/BaseGraph.java
    commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/BaseMutableGraph.java
    commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/DirectedMutableGraph.java
    commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/DirectedMutableWeightedGraph.java
    commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/MutableSpanningTree.java
    commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/UndirectedMutableGraph.java
    commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/UndirectedMutableWeightedGraph.java

Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/BaseGraph.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/BaseGraph.java?rev=1296451&r1=1296450&r2=1296451&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/BaseGraph.java (original)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/BaseGraph.java Fri Mar  2 20:52:20 2012
@@ -38,6 +38,8 @@ import org.apache.commons.graph.VertexPa
  * Basic abstract in-memory based of a simple read-only {@link Graph} implementation. Subclasses may load adjacency
  * list/edges set in the constructor, or expose {@link org.apache.commons.graph.MutableGraph} APIs.
  *
+ * This class is NOT thread safe!
+ *
  * @param <V> the Graph vertices type
  * @param <E> the Graph edges type
  */
@@ -123,7 +125,7 @@ public abstract class BaseGraph<V extend
     {
         return adjacencyList.containsKey( v );
     }
-    
+
     /**
      * {@inheritDoc}
      */
@@ -131,7 +133,7 @@ public abstract class BaseGraph<V extend
     {
         return indexedVertices.containsKey( e );
     }
-    
+
     /**
      * Returns the adjacency list where stored vertex/edges.
      *

Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/BaseMutableGraph.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/BaseMutableGraph.java?rev=1296451&r1=1296450&r2=1296451&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/BaseMutableGraph.java (original)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/BaseMutableGraph.java Fri Mar  2 20:52:20 2012
@@ -30,6 +30,8 @@ import org.apache.commons.graph.VertexPa
 /**
  * Basic abstract in-memory based of a simple mutable {@link Graph} implementation.
  *
+ * This class is NOT thread safe!
+ *
  * @param <V> the Graph vertices type
  * @param <E> the Graph edges type
  */
@@ -113,7 +115,7 @@ public abstract class BaseMutableGraph<V
             getIndexedVertices().put( e, vertexPair );
         }
     }
-    
+
     protected void internalRemoveEdge( V head, E e, V tail )
     {
         final VertexPair<V> vertexPair = new VertexPair<V>( head, tail );

Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/DirectedMutableGraph.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/DirectedMutableGraph.java?rev=1296451&r1=1296450&r2=1296451&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/DirectedMutableGraph.java (original)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/DirectedMutableGraph.java Fri Mar  2 20:52:20 2012
@@ -32,6 +32,8 @@ import org.apache.commons.graph.VertexPa
 /**
  * A memory-based implementation of a mutable directed Graph.
  *
+ * This class is NOT thread safe!
+ *
  * @param <V> the Graph vertices type
  * @param <E> the Graph edges type
  */

Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/DirectedMutableWeightedGraph.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/DirectedMutableWeightedGraph.java?rev=1296451&r1=1296450&r2=1296451&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/DirectedMutableWeightedGraph.java (original)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/DirectedMutableWeightedGraph.java Fri Mar  2 20:52:20 2012
@@ -26,6 +26,8 @@ import org.apache.commons.graph.Weighted
 /**
  * A memory-based implementation of a mutable, directed weighted Graph.
  *
+ * This class is NOT thread safe!
+ *
  * @param <V> the Graph vertices type
  * @param <WE> the WeightedEdge edges type
  */

Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/MutableSpanningTree.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/MutableSpanningTree.java?rev=1296451&r1=1296450&r2=1296451&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/MutableSpanningTree.java (original)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/MutableSpanningTree.java Fri Mar  2 20:52:20 2012
@@ -27,6 +27,8 @@ import org.apache.commons.graph.weight.M
 /**
  * A memory-based implementation of a mutable spanning tree.
  *
+ * This class is NOT thread safe!
+ *
  * @param <V> the Graph vertices type
  * @param <WE> the Graph weighted edges type
  * @param <W> the weight type

Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/UndirectedMutableGraph.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/UndirectedMutableGraph.java?rev=1296451&r1=1296450&r2=1296451&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/UndirectedMutableGraph.java (original)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/UndirectedMutableGraph.java Fri Mar  2 20:52:20 2012
@@ -26,6 +26,8 @@ import org.apache.commons.graph.Vertex;
 /**
  * A memory-based implementation of a mutable undirected Graph.
  *
+ * This class is NOT thread safe!
+ *
  * @param <V> the Graph vertices type
  * @param <E> the Graph edges type
  */

Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/UndirectedMutableWeightedGraph.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/UndirectedMutableWeightedGraph.java?rev=1296451&r1=1296450&r2=1296451&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/UndirectedMutableWeightedGraph.java (original)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/UndirectedMutableWeightedGraph.java Fri Mar  2 20:52:20 2012
@@ -26,6 +26,8 @@ import org.apache.commons.graph.Weighted
 /**
  * A memory-based implementation of a mutable, undirected weighted Graph.
  *
+ * This class is NOT thread safe!
+ *
  * @param <V> the Graph vertices type
  * @param <WE> the WeightedEdge edges type
  */