Revision: 1156
          http://stripes.svn.sourceforge.net/stripes/?rev=1156&view=rev
Author:   fdaoud
Date:     2009-10-03 14:17:17 +0000 (Sat, 03 Oct 2009)

Log Message:
-----------
Fix for STS-716

Modified Paths:
--------------
    
trunk/tests/src/net/sourceforge/stripes/controller/BeforeAfterMethodInterceptorTests.java
    
trunk/tests/src/net/sourceforge/stripes/integration/spring/SpringHelperTests.java

Modified: 
trunk/tests/src/net/sourceforge/stripes/controller/BeforeAfterMethodInterceptorTests.java
===================================================================
--- 
trunk/tests/src/net/sourceforge/stripes/controller/BeforeAfterMethodInterceptorTests.java
   2009-10-01 22:37:48 UTC (rev 1155)
+++ 
trunk/tests/src/net/sourceforge/stripes/controller/BeforeAfterMethodInterceptorTests.java
   2009-10-03 14:17:17 UTC (rev 1156)
@@ -237,26 +237,31 @@
             return null;
         }
 
+        @SuppressWarnings("unused")
         @Before(stages=LifecycleStage.ActionBeanResolution)
         public void beforeActionBeanResolutionWillNeverBeCalled() {
             hasCalledBeforeActionBeanResolutionWillNeverBeCalled++;
         }
 
+        @SuppressWarnings("unused")
         @Before
         public void beforeDefaultStage() {
             hasCalledBeforeDefaultStage++;
         }
 
+        @SuppressWarnings("unused")
         @Before(stages=LifecycleStage.HandlerResolution)
         public void beforeSpecificStage() {
             hasCalledBeforeSpecificStage++;
         }
 
+        @SuppressWarnings("unused")
         @Before(stages={LifecycleStage.BindingAndValidation, 
LifecycleStage.CustomValidation})
         public void beforeTwoStages() {
             hasCalledBeforeTwoStages++;
         }
 
+        @SuppressWarnings("unused")
         @Before
         public String beforeWithReturn() {
             hasCalledBeforeWithReturn++;
@@ -264,12 +269,14 @@
         }
 
         /** Parameters are not allowed. */
+        @SuppressWarnings("unused")
         @Before
         public void beforeWithParameter(String var) {
             hasCalledBeforeWithParameter++;
         }
 
         /** Parameters are not allowed. */
+        @SuppressWarnings("unused")
         @Before
         public String beforeWithReturnAndParameter(String var) {
             hasCalledBeforeWithReturnAndParameter++;
@@ -277,32 +284,38 @@
         }
 
         /** Should work just like a public method. */
+        @SuppressWarnings("unused")
         @Before
         protected void protectedBeforeMethod() {
             hasCalledProtectedBeforeMethod++;
         }
 
         /** Not annotated to be called by anyone */
+        @SuppressWarnings("unused")
         public void dummyMethod() {
             hasCalledDummyMethod++;
         }
 
+        @SuppressWarnings("unused")
         @After
         public void afterDefaultStage() {
             hasCalledAfterDefaultStage++;
         }
 
+        @SuppressWarnings("unused")
         @After(stages=LifecycleStage.ActionBeanResolution)
         public void afterSpecificStage() {
             hasCalledAfterSpecificStage++;
         }
 
+        @SuppressWarnings("unused")
         @After(stages={LifecycleStage.HandlerResolution, 
LifecycleStage.CustomValidation})
         public void afterTwoStages() {
             hasCalledAfterTwoStages++;
         }
 
         /** Returns are ok, and will just be ignored if not Resolutions. */
+        @SuppressWarnings("unused")
         @After
         public String afterWithReturn() {
             hasCalledAfterWithReturn++;
@@ -310,12 +323,14 @@
         }
 
         /** Not invoked because parameters are not kosher. */
+        @SuppressWarnings("unused")
         @After
         public void afterWithParameter(String var) {
             hasCalledAfterWithParameter++;
         }
 
         /** Not invoked because parameters are not kosher. */
+        @SuppressWarnings("unused")
         @After
         public String afterWithReturnAndParameter(String var) {
             hasCalledAfterWithReturnAndParameter++;
@@ -323,6 +338,7 @@
         }
 
         /** Should work just like a public method. */
+        @SuppressWarnings("unused")
         @After
         protected void protectedAfterMethod() {
             hasCalledProtectedAfterMethod++;
@@ -330,6 +346,7 @@
 
 
         /** Not invoked because parameters are not kosher. */
+        @SuppressWarnings("unused")
         @Before @After
         public String beforeAfterWithParameter(String var) {
             hasCalledBeforeAfterWithParameter++;
@@ -337,6 +354,7 @@
         }
 
         /** Invoked only at those stages listed. */
+        @SuppressWarnings("unused")
         @Before(stages=LifecycleStage.BindingAndValidation)
         @After(stages=LifecycleStage.CustomValidation)
         public void beforeAfterSpecificStage() {
@@ -344,12 +362,14 @@
         }
 
         /** Invoked only at default EventHandling stage. */
+        @SuppressWarnings("unused")
         @Before @After
         public void beforeAfterDefaultStage() {
             hasCalledBeforeAfterDefaultStage++;
         }
 
         /** Invoked only at default EventHandling stage. */
+        @SuppressWarnings("unused")
         @Before(on="edit") @After(on="save")
         public void beforeAfterOnSingleEvent() {
             hasCalledBeforeAfterOnSingleEvent++;
@@ -367,6 +387,7 @@
         public int getHasCalledBeforeTwoStages() { return 
hasCalledBeforeTwoStages; }
         public int getHasCalledBeforeAfterSpecificStage() { return 
hasCalledBeforeAfterSpecificStage; }
         public int getHasCalledBeforeAfterWithParameter() { return 
hasCalledBeforeAfterWithParameter; }
+        @SuppressWarnings("unused")
         public int getHasCalledBeforeActionBeanResolutionWillNeverBeCalled() { 
return hasCalledBeforeActionBeanResolutionWillNeverBeCalled; }
         public int getHasCalledBeforeWithReturn() { return 
hasCalledBeforeWithReturn; }
         public int getHasCalledBeforeWithParameter() { return 
hasCalledBeforeWithParameter; }

Modified: 
trunk/tests/src/net/sourceforge/stripes/integration/spring/SpringHelperTests.java
===================================================================
--- 
trunk/tests/src/net/sourceforge/stripes/integration/spring/SpringHelperTests.java
   2009-10-01 22:37:48 UTC (rev 1155)
+++ 
trunk/tests/src/net/sourceforge/stripes/integration/spring/SpringHelperTests.java
   2009-10-03 14:17:17 UTC (rev 1156)
@@ -37,6 +37,7 @@
 
     private static class ExplicitPublicSetterTarget {
         private TestBean bean;
+        @SuppressWarnings("unused")
         @SpringBean("test/TestBean")
         public void setBean(TestBean bean) { this.bean = bean; }
         public TestBean getBean() { return bean; }
@@ -84,6 +85,7 @@
 
     private static class ExplicitNonStandardSetterTarget {
         private TestBean bean;
+        @SuppressWarnings("unused")
         @SpringBean("test/TestBean")
         protected void injectHere(TestBean bean) { this.bean = bean; }
         TestBean getBean() { return bean; }
@@ -100,6 +102,7 @@
 
     private static class ImplicitNonStandardSetterTarget {
         private TestActionBean bean;
+        @SuppressWarnings("unused")
         @SpringBean protected void testActionBean(TestActionBean bean) { 
this.bean = bean; }
         TestActionBean getBean() { return bean; }
     }
@@ -115,6 +118,7 @@
 
     private static class ImplicitStandardSetterTarget {
         private TestActionBean bean;
+        @SuppressWarnings("unused")
         @SpringBean protected void setTestActionBean(TestActionBean bean) { 
this.bean = bean; }
         TestActionBean getBean() { return bean; }
     }
@@ -178,6 +182,7 @@
         @SpringBean("test/testActionBean")
         private void setNumber3(TestActionBean value) { this.number3 = value; }
 
+        @SuppressWarnings("unused")
         @SpringBean("testActionBean")
         public void whee(TestActionBean value) { this.number4 = value; }
     }
@@ -195,6 +200,7 @@
     ///////////////////////////////////////////////////////////////////////////
 
     private static class AmbiguousByTypeTarget {
+        @SuppressWarnings("unused")
         @SpringBean TestActionBean someBeanOrOther;
     }
 
@@ -207,6 +213,7 @@
     ///////////////////////////////////////////////////////////////////////////
 
     private static class ExplicitMisNamedTarget {
+        @SuppressWarnings("unused")
         @SpringBean("nonExistentBean") TestActionBean someBeanOrOther;
     }
 
@@ -219,6 +226,7 @@
     ///////////////////////////////////////////////////////////////////////////
 
     private static class ImplicitMisNamedTarget {
+        @SuppressWarnings("unused")
         @SpringBean TestActionBean tstActionBea;
     }
 
@@ -231,6 +239,7 @@
     ///////////////////////////////////////////////////////////////////////////
 
     private static class NoBeanOfTypeTarget {
+        @SuppressWarnings("unused")
         @SpringBean SpringHelperTests noBeansOfType;
     }
 
@@ -243,7 +252,9 @@
     ///////////////////////////////////////////////////////////////////////////
 
     private static class InvalidSetterSignatureTarget {
+        @SuppressWarnings("unused")
         TestActionBean testActionBean;
+        @SuppressWarnings("unused")
         @SpringBean
         public void setTestActionBean(TestActionBean bean, TestActionBean 
other) {
             this.testActionBean = bean;
@@ -268,6 +279,7 @@
         @SpringBean("test/testActionBean")
         private void setNumber3(TestActionBean value) { this.number3 = value; }
 
+        @SuppressWarnings("unused")
         @SpringBean("testActionBean")
         public void whee(TestActionBean value) { this.number4 = value; }
     }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to