clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject [2/3] git commit: CLEREZZA-948: avoid unnecessary merging of a set wit itself
Date Tue, 23 Sep 2014 13:44:44 GMT
CLEREZZA-948: avoid unnecessary merging of a set wit itself

Project: http://git-wip-us.apache.org/repos/asf/clerezza/repo
Commit: http://git-wip-us.apache.org/repos/asf/clerezza/commit/a04aec6e
Tree: http://git-wip-us.apache.org/repos/asf/clerezza/tree/a04aec6e
Diff: http://git-wip-us.apache.org/repos/asf/clerezza/diff/a04aec6e

Branch: refs/heads/master
Commit: a04aec6eeb9bc7aaafc35a75002a0477da17e5f1
Parents: a22b763
Author: Reto Gmür <reto@apache.org>
Authored: Thu Aug 28 11:17:19 2014 +0200
Committer: Reto Gmür <reto@apache.org>
Committed: Thu Aug 28 11:17:19 2014 +0200

----------------------------------------------------------------------
 .../java/org/apache/clerezza/rdf/utils/smushing/SameAsSmusher.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/clerezza/blob/a04aec6e/rdf.utils/src/main/java/org/apache/clerezza/rdf/utils/smushing/SameAsSmusher.java
----------------------------------------------------------------------
diff --git a/rdf.utils/src/main/java/org/apache/clerezza/rdf/utils/smushing/SameAsSmusher.java
b/rdf.utils/src/main/java/org/apache/clerezza/rdf/utils/smushing/SameAsSmusher.java
index 938abed..e9ccbe0 100644
--- a/rdf.utils/src/main/java/org/apache/clerezza/rdf/utils/smushing/SameAsSmusher.java
+++ b/rdf.utils/src/main/java/org/apache/clerezza/rdf/utils/smushing/SameAsSmusher.java
@@ -81,7 +81,7 @@ public class SameAsSmusher extends BaseSmusher {
                 }
             } else {
                 Set<NonLiteral> objectSet = node2EquivalenceSet.get(object);
-                if (objectSet != null) {
+                if ((objectSet != null) && (objectSet != equivalentNodes)) {
                     //merge two sets
                     for (NonLiteral res : objectSet) {
                         node2EquivalenceSet.remove(res);


Mime
View raw message