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-1270 refactored
Date Thu, 08 Jun 2017 15:08:12 GMT
Repository: deltaspike
Updated Branches:
  refs/heads/master 0e81ffe30 -> 82ba8c0dd


DELTASPIKE-1270 refactored

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

Branch: refs/heads/master
Commit: 82ba8c0dd898288101f7ed36072deb426b8e8984
Parents: 0e81ffe
Author: Thomas Andraschko <tandraschko@apache.org>
Authored: Thu Jun 8 17:08:04 2017 +0200
Committer: Thomas Andraschko <tandraschko@apache.org>
Committed: Thu Jun 8 17:08:04 2017 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/deltaspike/core/util/ClassUtils.java   | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/82ba8c0d/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/ClassUtils.java
----------------------------------------------------------------------
diff --git a/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/ClassUtils.java
b/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/ClassUtils.java
index 29d4bd8..897d69c 100644
--- a/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/ClassUtils.java
+++ b/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/ClassUtils.java
@@ -419,4 +419,9 @@ public abstract class ClassUtils
         }
         return true;
     }
+    
+    public static boolean returns(Method method, Class<?> clazz)
+    {
+        return method.getReturnType().isAssignableFrom(clazz);
+    }
 }


Mime
View raw message