deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tandrasc...@apache.org
Subject deltaspike git commit: DELTASPIKE-1267 Remove second factory mechanism of QueryBuilder's
Date Wed, 07 Jun 2017 13:08:21 GMT
Repository: deltaspike
Updated Branches:
  refs/heads/master 73a4969dd -> b48416ae6


DELTASPIKE-1267 Remove second factory mechanism of QueryBuilder's

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

Branch: refs/heads/master
Commit: b48416ae6a33c80c6a2c9c7e763abd157d580014
Parents: 73a4969
Author: Thomas Andraschko <tandraschko@apache.org>
Authored: Wed Jun 7 15:08:15 2017 +0200
Committer: Thomas Andraschko <tandraschko@apache.org>
Committed: Wed Jun 7 15:08:15 2017 +0200

----------------------------------------------------------------------
 .../deltaspike/data/impl/builder/QueryBuilderFactory.java       | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/b48416ae/deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/builder/QueryBuilderFactory.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/builder/QueryBuilderFactory.java
b/deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/builder/QueryBuilderFactory.java
index 9d512a9..481ef34 100644
--- a/deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/builder/QueryBuilderFactory.java
+++ b/deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/builder/QueryBuilderFactory.java
@@ -50,9 +50,10 @@ public class QueryBuilderFactory
                 return methodQueryBuilder;
             case DELEGATE:
                 return delegateQueryBuilder;
+            default:
+                throw new RuntimeException(
+                        "No " + QueryBuilder.class.getName() + " avialable for type: " +
repositoryMethodType);
         }
-        
-        throw new RuntimeException("No " + QueryBuilder.class.getName() + " avialable for
type: " + repositoryMethodType);
     }
 
     public QueryBuilder build(RepositoryMethodMetadata methodMetadata, CdiQueryInvocationContext
context)


Mime
View raw message