geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r794915 - /geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/GenericType.java
Date Fri, 17 Jul 2009 00:08:20 GMT
Author: gawor
Date: Fri Jul 17 00:08:20 2009
New Revision: 794915

URL: http://svn.apache.org/viewvc?rev=794915&view=rev
Log:
parameters for WildcardType and TypeVariable should be empty

Modified:
    geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/GenericType.java

Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/GenericType.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/GenericType.java?rev=794915&r1=794914&r2=794915&view=diff
==============================================================================
--- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/GenericType.java
(original)
+++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/GenericType.java
Fri Jul 17 00:08:20 2009
@@ -169,22 +169,10 @@
             return new GenericType[] { new GenericType(((GenericArrayType) type).getGenericComponentType())
};
         }
         if (type instanceof WildcardType) {
-            WildcardType wildcard = (WildcardType) type;
-            Type[] types = null;
-            if (wildcard.getLowerBounds() == null || wildcard.getLowerBounds().length ==
0) {
-                types = wildcard.getUpperBounds();
-            } else {
-                types = wildcard.getLowerBounds();
-            }
-            GenericType[] gts = new GenericType[types.length];
-            for (int i = 0; i < gts.length; i++) {
-                gts[i] = new GenericType(types[i]);
-            }
-            return gts;
+            return EMPTY;
         }
         if (type instanceof TypeVariable) {
-            TypeVariable typeVariable = (TypeVariable) type;
-            return new GenericType[] { new GenericType(typeVariable.getBounds()[0]) };
+            return EMPTY;
         }
         throw new IllegalStateException();
 	}



Mime
View raw message