jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1236618 - /incubator/jena/Jena2/TDB/trunk/src/test/java/com/hp/hpl/jena/tdb/junit/QueryTestTDB.java
Date Fri, 27 Jan 2012 09:43:39 GMT
Author: andy
Date: Fri Jan 27 09:43:38 2012
New Revision: 1236618

URL: http://svn.apache.org/viewvc?rev=1236618&view=rev
Log:
Null out the dataset member after a test (affects GC on some systems)

Modified:
    incubator/jena/Jena2/TDB/trunk/src/test/java/com/hp/hpl/jena/tdb/junit/QueryTestTDB.java

Modified: incubator/jena/Jena2/TDB/trunk/src/test/java/com/hp/hpl/jena/tdb/junit/QueryTestTDB.java
URL: http://svn.apache.org/viewvc/incubator/jena/Jena2/TDB/trunk/src/test/java/com/hp/hpl/jena/tdb/junit/QueryTestTDB.java?rev=1236618&r1=1236617&r2=1236618&view=diff
==============================================================================
--- incubator/jena/Jena2/TDB/trunk/src/test/java/com/hp/hpl/jena/tdb/junit/QueryTestTDB.java
(original)
+++ incubator/jena/Jena2/TDB/trunk/src/test/java/com/hp/hpl/jena/tdb/junit/QueryTestTDB.java
Fri Jan 27 09:43:38 2012
@@ -97,7 +97,11 @@ public class QueryTestTDB extends EarlTe
     
     @Override public void tearDown()
     { 
-        if ( dataset != null ) dataset.close() ; 
+        if ( dataset != null )
+        {
+            dataset.close() ;
+            dataset = null ;
+        }
     }
     
     public void setupData()



Mime
View raw message