You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by gp...@apache.org on 2012/03/22 12:23:07 UTC

git commit: DELTASPIKE-85 cleanup

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 <gp...@apache.org>
Authored: Thu Mar 22 12:20:32 2012 +0100
Committer: gpetracek <gp...@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)
         {