You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@clerezza.apache.org by mi...@apache.org on 2010/07/06 18:48:42 UTC

svn commit: r960943 - /incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.core/src/main/java/org/apache/clerezza/rdf/core/impl/SimpleTripleCollection.java

Author: mir
Date: Tue Jul  6 16:48:42 2010
New Revision: 960943

URL: http://svn.apache.org/viewvc?rev=960943&view=rev
Log:
CELERZZA-245: small improvement in SimpleTripleCollection

Modified:
    incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.core/src/main/java/org/apache/clerezza/rdf/core/impl/SimpleTripleCollection.java

Modified: incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.core/src/main/java/org/apache/clerezza/rdf/core/impl/SimpleTripleCollection.java
URL: http://svn.apache.org/viewvc/incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.core/src/main/java/org/apache/clerezza/rdf/core/impl/SimpleTripleCollection.java?rev=960943&r1=960942&r2=960943&view=diff
==============================================================================
--- incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.core/src/main/java/org/apache/clerezza/rdf/core/impl/SimpleTripleCollection.java (original)
+++ incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.core/src/main/java/org/apache/clerezza/rdf/core/impl/SimpleTripleCollection.java Tue Jul  6 16:48:42 2010
@@ -86,9 +86,7 @@ class SimpleTripleCollection extends Abs
 		}
 
 		private void invalidate() {
-			if (checkConcurrency) {
-				isValid = false;
-			}
+			isValid = false;
 		}
 	}	
 	
@@ -165,7 +163,9 @@ class SimpleTripleCollection extends Abs
 
 			final Iterator<Triple> listIter = tripleList.iterator();
 			SimpleIterator resultIter = new SimpleIterator(listIter);
-			iterators.add(new SoftReference<SimpleIterator>(resultIter));
+			if (checkConcurrency) {
+				iterators.add(new SoftReference<SimpleIterator>(resultIter));
+			}
 			return resultIter;
 		}
 	}