cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject git commit: [CXF-5806] Very minor optimization
Date Thu, 19 Jun 2014 11:43:57 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 5dcb1f334 -> 9d1b5e3a6


[CXF-5806] Very minor optimization


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

Branch: refs/heads/master
Commit: 9d1b5e3a671d0b9f704f0666960759b81b9e676d
Parents: 5dcb1f3
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Thu Jun 19 12:43:41 2014 +0100
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Thu Jun 19 12:43:41 2014 +0100

----------------------------------------------------------------------
 .../cxf/jaxrs/ext/search/jpa/AbstractJPATypedQueryVisitor.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/9d1b5e3a/rt/rs/extensions/search/src/main/java/org/apache/cxf/jaxrs/ext/search/jpa/AbstractJPATypedQueryVisitor.java
----------------------------------------------------------------------
diff --git a/rt/rs/extensions/search/src/main/java/org/apache/cxf/jaxrs/ext/search/jpa/AbstractJPATypedQueryVisitor.java
b/rt/rs/extensions/search/src/main/java/org/apache/cxf/jaxrs/ext/search/jpa/AbstractJPATypedQueryVisitor.java
index 6872dd8..2b91de2 100644
--- a/rt/rs/extensions/search/src/main/java/org/apache/cxf/jaxrs/ext/search/jpa/AbstractJPATypedQueryVisitor.java
+++ b/rt/rs/extensions/search/src/main/java/org/apache/cxf/jaxrs/ext/search/jpa/AbstractJPATypedQueryVisitor.java
@@ -323,7 +323,7 @@ public abstract class AbstractJPATypedQueryVisitor<T, T1, E>
     }
     
     private boolean existingCollectionInPostName(ClassValue cv, String postName) {
-        if (postName != null) {
+        if (postName != null && postName.indexOf('.') != -1) {
             final String[] splitName = postName.split("\\.");
             for (String name : splitName) {
                 if (cv.isCollection(name)) {


Mime
View raw message