You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ga...@apache.org on 2009/07/17 02:08:20 UTC
svn commit: r794915 -
/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/GenericType.java
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();
}