Revision: 764
http://stripes.svn.sourceforge.net/stripes/?rev=764&view=rev
Author: bengunter
Date: 2008-01-19 12:12:19 -0800 (Sat, 19 Jan 2008)
Log Message:
-----------
Cleared up some warnings involving unused imports and raw types
Modified Paths:
--------------
trunk/stripes/src/net/sourceforge/stripes/tag/UseActionBeanTagExtraInfo.java
trunk/stripes/src/net/sourceforge/stripes/util/bean/PropertyExpressionEvaluation.java
trunk/tests/src/net/sourceforge/stripes/controller/GenericsBindingTests.java
trunk/tests/src/net/sourceforge/stripes/test/TestGenericBean.java
Modified:
trunk/stripes/src/net/sourceforge/stripes/tag/UseActionBeanTagExtraInfo.java
===================================================================
---
trunk/stripes/src/net/sourceforge/stripes/tag/UseActionBeanTagExtraInfo.java
2008-01-19 16:55:57 UTC (rev 763)
+++
trunk/stripes/src/net/sourceforge/stripes/tag/UseActionBeanTagExtraInfo.java
2008-01-19 20:12:19 UTC (rev 764)
@@ -47,7 +47,7 @@
if (var == null) tag.getAttribute("id");
// Make sure we have the class name, not the class
- if (beanclass instanceof Class) beanclass = ((Class)
beanclass).getName();
+ if (beanclass instanceof Class) beanclass = ((Class<?>)
beanclass).getName();
// Return the variable info
return new VariableInfo[] { new VariableInfo(var, (String)
beanclass, true, VariableInfo.AT_BEGIN) };
Modified:
trunk/stripes/src/net/sourceforge/stripes/util/bean/PropertyExpressionEvaluation.java
===================================================================
---
trunk/stripes/src/net/sourceforge/stripes/util/bean/PropertyExpressionEvaluation.java
2008-01-19 16:55:57 UTC (rev 763)
+++
trunk/stripes/src/net/sourceforge/stripes/util/bean/PropertyExpressionEvaluation.java
2008-01-19 20:12:19 UTC (rev 764)
@@ -424,7 +424,7 @@
// Now find the parent of the ptype and see if it's a
ptype too!
Type rawtype = ptype.getRawType();
if (rawtype instanceof Class) {
- Class<?> superclass = (Class) rawtype;
+ Class<?> superclass = (Class<?>) rawtype;
Type supertype = superclass.getGenericSuperclass();
ptype = (supertype instanceof ParameterizedType) ?
(ParameterizedType) supertype : null;
}
@@ -440,7 +440,7 @@
}
}
- Class<?> declaration = (Class) typeVar.getGenericDeclaration();
+ Class<?> declaration = (Class<?>) typeVar.getGenericDeclaration();
Type type = null;
// If the type variable doesn't come from a direct superclass of the
Modified:
trunk/tests/src/net/sourceforge/stripes/controller/GenericsBindingTests.java
===================================================================
---
trunk/tests/src/net/sourceforge/stripes/controller/GenericsBindingTests.java
2008-01-19 16:55:57 UTC (rev 763)
+++
trunk/tests/src/net/sourceforge/stripes/controller/GenericsBindingTests.java
2008-01-19 20:12:19 UTC (rev 764)
@@ -8,13 +8,11 @@
import net.sourceforge.stripes.action.Resolution;
import net.sourceforge.stripes.mock.MockRoundtrip;
import net.sourceforge.stripes.test.TestBean;
-import net.sourceforge.stripes.test.TestGenericBean;
import org.testng.Assert;
import org.testng.annotations.Test;
import java.util.Calendar;
import java.util.Date;
-import java.lang.reflect.Method;
/**
*
Modified: trunk/tests/src/net/sourceforge/stripes/test/TestGenericBean.java
===================================================================
--- trunk/tests/src/net/sourceforge/stripes/test/TestGenericBean.java
2008-01-19 16:55:57 UTC (rev 763)
+++ trunk/tests/src/net/sourceforge/stripes/test/TestGenericBean.java
2008-01-19 20:12:19 UTC (rev 764)
@@ -1,7 +1,5 @@
package net.sourceforge.stripes.test;
-import java.lang.reflect.Method;
-
/**
* A JavaBean that is a generic type.
*
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development