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:49:59 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes 528cde38c -> a270ae2f9


[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/a270ae2f
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/a270ae2f
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/a270ae2f

Branch: refs/heads/2.7.x-fixes
Commit: a270ae2f92a650934d130db34238de36f550160a
Parents: 528cde3
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Thu Jun 19 12:49:35 2014 +0100
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Thu Jun 19 12:49:35 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/a270ae2f/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