You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by ja...@apache.org on 2013/05/08 09:33:42 UTC
[4/7] git commit: Brackets now have to be added explicitly.
Brackets now have to be added explicitly.
Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/fd5642b4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/fd5642b4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/fd5642b4
Branch: refs/heads/develop
Commit: fd5642b48e90e4ed9d72c85dcc6f9d858a912270
Parents: 73d88b7
Author: Jakob Frank <ja...@apache.org>
Authored: Tue May 7 16:13:42 2013 +0200
Committer: Jakob Frank <ja...@apache.org>
Committed: Tue May 7 16:13:42 2013 +0200
----------------------------------------------------------------------
.../model/selectors/IntersectionSelector.java | 2 +-
.../ldpath/model/selectors/UnionSelector.java | 2 +-
.../model/tests/functions/BinaryNumericTest.java | 1 -
3 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/fd5642b4/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/IntersectionSelector.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/IntersectionSelector.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/IntersectionSelector.java
index b50a5d6..443b225 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/IntersectionSelector.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/IntersectionSelector.java
@@ -65,7 +65,7 @@ public class IntersectionSelector<Node> implements NodeSelector<Node> {
@Override
public String getPathExpression(NodeBackend<Node> backend) {
- return String.format("(%s & %s)", left.getPathExpression(backend), right.getPathExpression(backend));
+ return String.format("%s & %s", left.getPathExpression(backend), right.getPathExpression(backend));
}
/**
http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/fd5642b4/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/UnionSelector.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/UnionSelector.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/UnionSelector.java
index 963c38a..1964fd3 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/UnionSelector.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/UnionSelector.java
@@ -74,7 +74,7 @@ public class UnionSelector<Node> implements NodeSelector<Node> {
*/
@Override
public String getPathExpression(NodeBackend<Node> rdfBackend) {
- return String.format("(%s | %s)", left.getPathExpression(rdfBackend), right.getPathExpression(rdfBackend));
+ return String.format("%s | %s", left.getPathExpression(rdfBackend), right.getPathExpression(rdfBackend));
}
/**
http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/fd5642b4/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/functions/BinaryNumericTest.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/functions/BinaryNumericTest.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/functions/BinaryNumericTest.java
index c367c97..b7422d6 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/functions/BinaryNumericTest.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/functions/BinaryNumericTest.java
@@ -20,7 +20,6 @@ package org.apache.marmotta.ldpath.model.tests.functions;
import java.util.Collection;
-import org.apache.marmotta.ldpath.api.backend.NodeBackend;
import org.apache.marmotta.ldpath.api.backend.RDFBackend;
import org.apache.marmotta.ldpath.api.functions.TestFunction;
import org.apache.marmotta.ldpath.model.transformers.DoubleTransformer;