incubator-deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject git commit: DELTASPIKE-85 cleanup
Date Thu, 22 Mar 2012 11:23:07 GMT
Updated Branches:
  refs/heads/master 2e1f60ec8 -> bdbb4b30a


DELTASPIKE-85 cleanup


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

Branch: refs/heads/master
Commit: bdbb4b30a94ef9475e14a601fd1ed52d18daa404
Parents: 2e1f60e
Author: gpetracek <gpetracek@apache.org>
Authored: Thu Mar 22 12:20:32 2012 +0100
Committer: gpetracek <gpetracek@apache.org>
Committed: Thu Mar 22 12:20:32 2012 +0100

----------------------------------------------------------------------
 .../deltaspike/core/util/ReflectionUtils.java      |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/blob/bdbb4b30/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/ReflectionUtils.java
----------------------------------------------------------------------
diff --git a/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/ReflectionUtils.java
b/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/ReflectionUtils.java
index 94337b0..921a631 100644
--- a/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/ReflectionUtils.java
+++ b/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/ReflectionUtils.java
@@ -376,8 +376,10 @@ public abstract class ReflectionUtils
      * @param clazz The class to examine
      * @return The type arguments
      */
-    public static Type[] getTypeArguments(Class<?> clazz)
+    public static Type[] getActualTypeArguments(Class<?> clazz)
     {
+        //X TODO discuss direct usage: return clazz.getTypeParameters();
+
         Type type = new HierarchyDiscovery(clazz).getResolvedType();
         if (type instanceof ParameterizedType)
         {
@@ -395,8 +397,10 @@ public abstract class ReflectionUtils
      * @param type The type to examine
      * @return The type arguments
      */
-    public static Type[] getTypeArguments(Type type)
+    public static Type[] getActualTypeArguments(Type type)
     {
+        //X TODO discuss delegation to getActualTypeArguments(Class) if type is an instance
of Class
+
         Type resolvedType = new HierarchyDiscovery(type).getResolvedType();
         if (resolvedType instanceof ParameterizedType)
         {


Mime
View raw message