[Mulgara-svn] r2043 - trunk/src/jar/resolver/java/org/mulgara/resolver

pag at mulgara.org pag at mulgara.org
Sat Sep 24 02:24:18 UTC 2011


Author: pag
Date: 2011-09-24 02:24:17 +0000 (Sat, 24 Sep 2011)
New Revision: 2043

Modified:
   trunk/src/jar/resolver/java/org/mulgara/resolver/SetGraphOperation.java
Log:
Removed redundant tests

Modified: trunk/src/jar/resolver/java/org/mulgara/resolver/SetGraphOperation.java
===================================================================
--- trunk/src/jar/resolver/java/org/mulgara/resolver/SetGraphOperation.java	2011-09-24 01:05:34 UTC (rev 2042)
+++ trunk/src/jar/resolver/java/org/mulgara/resolver/SetGraphOperation.java	2011-09-24 02:24:17 UTC (rev 2043)
@@ -136,12 +136,6 @@
     }
     
     long destinationModel = systemResolver.localize(new URIReferenceImpl(destinationUri));
-    try {
-      long sourceModel = systemResolver.localize(new URIReferenceImpl(sourceUri, false));
-      if (destinationModel == sourceModel) throw new QueryException("Identical source and destination: " + destinationUri);
-    } catch (Exception e) {
-      // source and destinations cannot be equal, so ignore
-    }
 
     // update the destination to the canonical form
     destinationModel = operationContext.getCanonicalModel(destinationModel);



More information about the Mulgara-svn mailing list