jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [10/14] jena git commit: correct exception messages to reflect required boolean values
Date Fri, 01 Dec 2017 19:09:10 GMT
correct exception messages to reflect required boolean values

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

Branch: refs/heads/master
Commit: 281d65c431054ee38a4fcae22952a43e360c2a1d
Parents: ed67ef7
Author: Chris Tomlinson <ct@moonvine.org>
Authored: Wed Nov 29 12:07:33 2017 -0600
Committer: Chris Tomlinson <ct@moonvine.org>
Committed: Wed Nov 29 12:07:33 2017 -0600

----------------------------------------------------------------------
 .../jena/query/text/assembler/TextIndexLuceneAssembler.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/281d65c4/jena-text/src/main/java/org/apache/jena/query/text/assembler/TextIndexLuceneAssembler.java
----------------------------------------------------------------------
diff --git a/jena-text/src/main/java/org/apache/jena/query/text/assembler/TextIndexLuceneAssembler.java
b/jena-text/src/main/java/org/apache/jena/query/text/assembler/TextIndexLuceneAssembler.java
index f8e6a16..ebaca4e 100644
--- a/jena-text/src/main/java/org/apache/jena/query/text/assembler/TextIndexLuceneAssembler.java
+++ b/jena-text/src/main/java/org/apache/jena/query/text/assembler/TextIndexLuceneAssembler.java
@@ -112,7 +112,7 @@ public class TextIndexLuceneAssembler extends AssemblerBase {
             if (null != mlSupportStatement) {
                 RDFNode mlsNode = mlSupportStatement.getObject();
                 if (! mlsNode.isLiteral()) {
-                    throw new TextIndexException("text:multilingualSupport property must
be a string : " + mlsNode);
+                    throw new TextIndexException("text:multilingualSupport property must
be a boolean : " + mlsNode);
                 }
                 isMultilingualSupport = mlsNode.asLiteral().getBoolean();
             }
@@ -139,7 +139,7 @@ public class TextIndexLuceneAssembler extends AssemblerBase {
             if (null != storeValuesStatement) {
                 RDFNode svNode = storeValuesStatement.getObject();
                 if (! svNode.isLiteral()) {
-                    throw new TextIndexException("text:storeValues property must be a string
: " + svNode);
+                    throw new TextIndexException("text:storeValues property must be a boolean
: " + svNode);
                 }
                 storeValues = svNode.asLiteral().getBoolean();
             }
@@ -150,7 +150,7 @@ public class TextIndexLuceneAssembler extends AssemblerBase {
             if (null != cacheQueriesStatement) {
                 RDFNode cqNode = cacheQueriesStatement.getObject();
                 if (! cqNode.isLiteral()) {
-                    throw new TextIndexException("text:cacheQueries property must be a string
: " + cqNode);
+                    throw new TextIndexException("text:cacheQueries property must be a boolean
: " + cqNode);
                 }
                 cacheQueries = cqNode.asLiteral().getBoolean();
             }


Mime
View raw message