[jboss-cvs] jboss-seam/src/remoting/org/jboss/seam/remoting/wrapper ...
Shane Bryzak
sbryzak at redhat.com
Fri May 4 03:53:47 EDT 2007
User: sbryzak2
Date: 07/05/04 03:53:47
Modified: src/remoting/org/jboss/seam/remoting/wrapper
BagWrapper.java
Log:
JBSEAM-1202
Revision Changes Path
1.2 +3 -6 jboss-seam/src/remoting/org/jboss/seam/remoting/wrapper/BagWrapper.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: BagWrapper.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/remoting/org/jboss/seam/remoting/wrapper/BagWrapper.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- BagWrapper.java 27 Feb 2007 22:15:24 -0000 1.1
+++ BagWrapper.java 4 May 2007 07:53:47 -0000 1.2
@@ -101,16 +101,13 @@
Collection.class.isAssignableFrom((Class) ((ParameterizedType) type).getRawType()))
{
Class rawType = (Class) ((ParameterizedType) type).getRawType();
- Class genType = Object.class;
+ Type genType = Object.class;
for (Type t : ((ParameterizedType) type).getActualTypeArguments())
{
- if (t instanceof Class) // Take the first Class we find
- {
- genType = (Class) t;
+ genType = t;
break;
}
- }
try {
value = getConcreteClass(rawType).newInstance();
More information about the jboss-cvs-commits
mailing list