You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2013/07/09 10:54:27 UTC
svn commit: r1501141 -
/jena/trunk/jena-tdb/src/test/java/com/hp/hpl/jena/tdb/extra/T_TransSystemMultiDatasets.java
Author: andy
Date: Tue Jul 9 08:54:26 2013
New Revision: 1501141
URL: http://svn.apache.org/r1501141
Log:
Remove @SuppressWarnings, because in Eclispe Kepler it generates a warning.
Modified:
jena/trunk/jena-tdb/src/test/java/com/hp/hpl/jena/tdb/extra/T_TransSystemMultiDatasets.java
Modified: jena/trunk/jena-tdb/src/test/java/com/hp/hpl/jena/tdb/extra/T_TransSystemMultiDatasets.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-tdb/src/test/java/com/hp/hpl/jena/tdb/extra/T_TransSystemMultiDatasets.java?rev=1501141&r1=1501140&r2=1501141&view=diff
==============================================================================
--- jena/trunk/jena-tdb/src/test/java/com/hp/hpl/jena/tdb/extra/T_TransSystemMultiDatasets.java (original)
+++ jena/trunk/jena-tdb/src/test/java/com/hp/hpl/jena/tdb/extra/T_TransSystemMultiDatasets.java Tue Jul 9 08:54:26 2013
@@ -175,10 +175,15 @@ public class T_TransSystemMultiDatasets
int x1 = count("SELECT * { ?s ?p ?o }", dsg) ;
pause(maxpause) ;
int x2 = count("SELECT * { ?s ?p ?o }", dsg) ;
- if (x1 != x2) log.warn(format("READER: %s Change seen: %d/%d : id=%d: i=%d",
- dsg.getTransaction().getLabel(), x1, x2, id, i)) ;
- log.debug("reader finish " + id + "/" + i) ;
+ // Eclispe Kepler (3.4) bug - otherwise the dsg.end() below
+ // gets a warning ("The variable dsg can only be null at this location")/
+ // which is wrong.
+ dsg.getClass() ;
+ if ( x1 != x2 )
+ log.warn(format("READER: %s Change seen: %d/%d : id=%d: i=%d", dsg.getTransaction().getLabel(),
+ x1, x2, id, i)) ;
dsg.end() ;
+ log.debug("reader finish " + id + "/" + i) ;
dsg = null ;
}
return null ;