]> gerrit.simantics Code Review - simantics/interop.git/commitdiff
Remove residual code that maps different literals. 13/4613/1
authorMarko Luukkainen <marko.luukkainen@semantum.fi>
Wed, 18 Nov 2020 12:23:34 +0000 (14:23 +0200)
committerMarko Luukkainen <marko.luukkainen@semantum.fi>
Wed, 18 Nov 2020 12:23:34 +0000 (14:23 +0200)
gitlab #25

Change-Id: Ic18ccbb5ccf42e0d324404e62c3e0b70e329c36f

org.simantics.interop/src/org/simantics/interop/test/GraphComparator.java

index 2727a95e0793dd5f5249c06c50361a749561931e..15b8c2c7e3cb1ef764e8e5915db059d49cabfc90 100644 (file)
@@ -797,6 +797,8 @@ public class GraphComparator {
        }
        
        private void addComparable(Resource left, Resource right) throws DatabaseException {
+               if (left.getResourceId() == 225745 || right.getResourceId() == 225745)
+                       System.out.println();
                if(!comparableResources.contains(left, right)) {
                        if (comparableResources.containsLeft(left)||comparableResources.containsRight(right)) {
                                throw new DatabaseException("Comparator error: Trying to map " + left + " to " + right + " while mappings " + left + " to " + comparableResources.getRight(left) + " and " + comparableResources.getLeft(right) + " to " + right + " exist.");
@@ -1275,8 +1277,6 @@ public class GraphComparator {
                                                }
                                        } else {
                                                addModification(r1,s1,r2,s2);
-                                               if (!s1.isAsserted(r1) && !s2.isAsserted(r2))
-                                                       addComparable(s1, s2);
                                        }
                                        i1++;
                                        i2++;