deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tandrasc...@apache.org
Subject deltaspike git commit: fixed RAT
Date Thu, 08 Jun 2017 07:23:59 GMT
Repository: deltaspike
Updated Branches:
  refs/heads/master a551978c2 -> 0e81ffe30


fixed RAT

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

Branch: refs/heads/master
Commit: 0e81ffe30a94d95c2c96e36273ba58b74a39ecf6
Parents: a551978
Author: Thomas Andraschko <tandraschko@apache.org>
Authored: Thu Jun 8 09:23:52 2017 +0200
Committer: Thomas Andraschko <tandraschko@apache.org>
Committed: Thu Jun 8 09:23:52 2017 +0200

----------------------------------------------------------------------
 .../data/impl/meta/RepositoryMethodMetadataInitializer.java     | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/0e81ffe3/deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/meta/RepositoryMethodMetadataInitializer.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/meta/RepositoryMethodMetadataInitializer.java
b/deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/meta/RepositoryMethodMetadataInitializer.java
index 5d94b39..969be6d 100644
--- a/deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/meta/RepositoryMethodMetadataInitializer.java
+++ b/deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/meta/RepositoryMethodMetadataInitializer.java
@@ -203,8 +203,9 @@ public class RepositoryMethodMetadataInitializer
         
         if (ClassUtils.containsMethod(EntityRepositoryHandler.class, repositoryMethodMetadata.getMethod()))
         {
-            Method executed = ClassUtils.extractMethod(EntityRepositoryHandler.class, repositoryMethodMetadata.getMethod());
-            if (executed.isAnnotationPresent(RequiresTransaction.class))
+            Method originalMethod = ClassUtils.extractMethod(EntityRepositoryHandler.class,
+                    repositoryMethodMetadata.getMethod());
+            if (originalMethod.isAnnotationPresent(RequiresTransaction.class))
             {
                 requiresTransaction = true;
             }


Mime
View raw message