jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sal...@apache.org
Subject svn commit: r1326875 - /incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/sparql/core/Quad.java
Date Tue, 17 Apr 2012 01:47:02 GMT
Author: sallen
Date: Tue Apr 17 01:47:01 2012
New Revision: 1326875

URL: http://svn.apache.org/viewvc?rev=1326875&view=rev
Log:
JENA-237 (Quad is mutable)

Modified:
    incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/sparql/core/Quad.java

Modified: incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/sparql/core/Quad.java
URL: http://svn.apache.org/viewvc/incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/sparql/core/Quad.java?rev=1326875&r1=1326874&r2=1326875&view=diff
==============================================================================
--- incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/sparql/core/Quad.java (original)
+++ incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/sparql/core/Quad.java Tue
Apr 17 01:47:01 2012
@@ -74,13 +74,10 @@ public class Quad
     public final Node getPredicate()  { return predicate ; }
     public final Node getObject()     { return object ; }
 
-    private Triple triple = null ;
     /** Get as a triple - useful because quads often come in blocks for the same graph */
 
     public Triple asTriple()
     { 
-        if ( triple == null )
-            triple = new Triple(subject, predicate, object) ;
-        return triple ;
+        return new Triple(subject, predicate, object) ;
     }
     
     public boolean isConcrete()



Mime
View raw message