Revision: 547
http://svn.sourceforge.net/stripes/?rev=547&view=rev
Author: bengunter
Date: 2007-05-18 18:03:12 -0700 (Fri, 18 May 2007)
Log Message:
-----------
added @SuppressWarnings where appropriate
Modified Paths:
--------------
trunk/examples/src/net/sourceforge/stripes/examples/bugzooky/ViewResourceActionBean.java
trunk/tests/src/net/sourceforge/stripes/controller/FlashScopeTests.java
trunk/tests/src/net/sourceforge/stripes/controller/MapBindingTests.java
trunk/tests/src/net/sourceforge/stripes/integration/spring/SpringHelperTests.java
trunk/tests/src/net/sourceforge/stripes/util/bean/PropertyExpressionTests.java
trunk/tests/src/net/sourceforge/stripes/validation/BigDecimalTypeConverterTest.java
trunk/tests/src/net/sourceforge/stripes/validation/BigIntegerTypeConverterTest.java
Modified:
trunk/examples/src/net/sourceforge/stripes/examples/bugzooky/ViewResourceActionBean.java
===================================================================
---
trunk/examples/src/net/sourceforge/stripes/examples/bugzooky/ViewResourceActionBean.java
2007-05-19 00:44:10 UTC (rev 546)
+++
trunk/examples/src/net/sourceforge/stripes/examples/bugzooky/ViewResourceActionBean.java
2007-05-19 01:03:12 UTC (rev 547)
@@ -75,6 +75,7 @@
* Method used when this ActionBean is used as a view helper. Returns a
listing of all the
* JSPs and ActionBeans available for viewing.
*/
+ @SuppressWarnings("unchecked")
public Collection getAvailableResources() {
ServletContext ctx =
getContext().getRequest().getSession().getServletContext();
SortedSet<String> resources = new TreeSet<String>();
Modified:
trunk/tests/src/net/sourceforge/stripes/controller/FlashScopeTests.java
===================================================================
--- trunk/tests/src/net/sourceforge/stripes/controller/FlashScopeTests.java
2007-05-19 00:44:10 UTC (rev 546)
+++ trunk/tests/src/net/sourceforge/stripes/controller/FlashScopeTests.java
2007-05-19 01:03:12 UTC (rev 547)
@@ -37,6 +37,7 @@
public void setContext(ActionBeanContext context) { this.context =
context; }
/** A test handler that moves all request parameters into a flash scope. */
+ @SuppressWarnings("unchecked")
@DefaultHandler
public Resolution flash() {
HttpServletRequest req = getContext().getRequest();
Modified:
trunk/tests/src/net/sourceforge/stripes/controller/MapBindingTests.java
===================================================================
--- trunk/tests/src/net/sourceforge/stripes/controller/MapBindingTests.java
2007-05-19 00:44:10 UTC (rev 546)
+++ trunk/tests/src/net/sourceforge/stripes/controller/MapBindingTests.java
2007-05-19 01:03:12 UTC (rev 547)
@@ -239,6 +239,7 @@
Assert.assertNotNull(bean.getMapDateDate().get(key));
}
+ @SuppressWarnings("unchecked")
@Before(stages=LifecycleStage.BindingAndValidation)
public void populateTypelessMap() {
this.typelessMap = new HashMap();
Modified:
trunk/tests/src/net/sourceforge/stripes/integration/spring/SpringHelperTests.java
===================================================================
---
trunk/tests/src/net/sourceforge/stripes/integration/spring/SpringHelperTests.java
2007-05-19 00:44:10 UTC (rev 546)
+++
trunk/tests/src/net/sourceforge/stripes/integration/spring/SpringHelperTests.java
2007-05-19 01:03:12 UTC (rev 547)
@@ -45,6 +45,7 @@
private static class ExplicitPrivateSetterTarget {
private TestBean bean;
+ @SuppressWarnings("unused")
@SpringBean("test/TestBean")
private void setBean(TestBean bean) { this.bean = bean; }
TestBean getBean() { return bean; }
@@ -165,6 +166,7 @@
TestActionBean number3; // explicit private method
TestActionBean number4; // explicit public method
+ @SuppressWarnings("unused")
@SpringBean("test/testActionBean")
private void setNumber3(TestActionBean value) { this.number3 = value; }
@@ -254,6 +256,7 @@
TestActionBean number3; // explicit private method
TestActionBean number4; // explicit public method
+ @SuppressWarnings("unused")
@SpringBean("test/testActionBean")
private void setNumber3(TestActionBean value) { this.number3 = value; }
Modified:
trunk/tests/src/net/sourceforge/stripes/util/bean/PropertyExpressionTests.java
===================================================================
---
trunk/tests/src/net/sourceforge/stripes/util/bean/PropertyExpressionTests.java
2007-05-19 00:44:10 UTC (rev 546)
+++
trunk/tests/src/net/sourceforge/stripes/util/bean/PropertyExpressionTests.java
2007-05-19 01:03:12 UTC (rev 547)
@@ -63,6 +63,7 @@
@Test(groups="fast", expectedExceptions=ParseException.class)
public void testBackToBackQuotedStrings() {
+ @SuppressWarnings("unused")
PropertyExpression expr =
PropertyExpression.getExpression("foo['bar''splat']");
}
Modified:
trunk/tests/src/net/sourceforge/stripes/validation/BigDecimalTypeConverterTest.java
===================================================================
---
trunk/tests/src/net/sourceforge/stripes/validation/BigDecimalTypeConverterTest.java
2007-05-19 00:44:10 UTC (rev 546)
+++
trunk/tests/src/net/sourceforge/stripes/validation/BigDecimalTypeConverterTest.java
2007-05-19 01:03:12 UTC (rev 547)
@@ -62,6 +62,7 @@
TypeConverter<BigDecimal> converter = new BigDecimalTypeConverter();
converter.setLocale(Locale.US);
Collection<ValidationError> errors = errors();
+ @SuppressWarnings("unused")
BigDecimal result = converter.convert(number, BigDecimal.class,
errors);
Assert.assertEquals(errors.size(), 1);
}
Modified:
trunk/tests/src/net/sourceforge/stripes/validation/BigIntegerTypeConverterTest.java
===================================================================
---
trunk/tests/src/net/sourceforge/stripes/validation/BigIntegerTypeConverterTest.java
2007-05-19 00:44:10 UTC (rev 546)
+++
trunk/tests/src/net/sourceforge/stripes/validation/BigIntegerTypeConverterTest.java
2007-05-19 01:03:12 UTC (rev 547)
@@ -71,6 +71,7 @@
TypeConverter<BigInteger> converter = new BigIntegerTypeConverter();
converter.setLocale(Locale.US);
Collection<ValidationError> errors = errors();
+ @SuppressWarnings("unused")
BigInteger result = converter.convert(number, BigInteger.class,
errors);
Assert.assertEquals(errors.size(), 1);
}
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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development