]> gerrit.simantics Code Review - simantics/interop.git/commitdiff
Comparator did not map root resources -> invalid results
authorluukkainen <luukkainen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 19 Apr 2012 15:15:58 +0000 (15:15 +0000)
committerMarko Luukkainen <marko.luukkainen@vtt.fi>
Thu, 2 Feb 2017 09:22:20 +0000 (11:22 +0200)
refs #3138

git-svn-id: https://www.simantics.org/svn/simantics/interoperability/trunk@24739 ac1ea38d-2e2b-0410-8846-a27921b304fc

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

index f7c4ea69667cc479d014a931cdecfbe2e9ee81b0..71fc67e8d272e8a2aeae384396b06542a89bf896 100644 (file)
@@ -210,6 +210,8 @@ public class GraphComparator {
                \r
                comparator.setComparator(this);\r
                \r
+               comparableResources.map(r1, r2);\r
+               \r
                final Stack<Resource> objectsLeft = new Stack<Resource>();\r
                final Stack<Resource> objectsRight = new Stack<Resource>();\r
                objectsLeft.push(r1);\r
@@ -342,7 +344,7 @@ public class GraphComparator {
                                                comparableResources.contains(leftS.getPredicate(), rightS.getPredicate())) {\r
                                                unreliableLeft.remove(leftS);\r
                                                unreliableRight.remove(rightS);\r
-                                               comparableStatements.map(leftS, rightS);\r
+                                               addComparable(leftS, rightS, false);\r
                                        }\r
                                }\r
                        }\r