Revision: 586
          http://svn.sourceforge.net/stripes/?rev=586&view=rev
Author:   mongus
Date:     2007-07-06 17:30:59 -0700 (Fri, 06 Jul 2007)

Log Message:
-----------
fixed a couple of compiler warnings
set instance variables to null because tag instances were being reused by the 
servlet container and had leftover values from previous tags

Modified Paths:
--------------
    trunk/stripes/src/net/sourceforge/stripes/tag/InputOptionsCollectionTag.java

Modified: 
trunk/stripes/src/net/sourceforge/stripes/tag/InputOptionsCollectionTag.java
===================================================================
--- 
trunk/stripes/src/net/sourceforge/stripes/tag/InputOptionsCollectionTag.java    
    2007-07-07 00:28:59 UTC (rev 585)
+++ 
trunk/stripes/src/net/sourceforge/stripes/tag/InputOptionsCollectionTag.java    
    2007-07-07 00:30:59 UTC (rev 586)
@@ -77,7 +77,7 @@
  * @author Tim Fennell
  */
 public class InputOptionsCollectionTag extends HtmlTagSupport implements Tag {
-    private Collection collection;
+    private Collection<? extends Object> collection;
     private String value;
     private String label;
     private String sort;
@@ -209,7 +209,7 @@
             Locale locale = getPageContext().getRequest().getLocale();
 
             for (Object item : this.collection) {
-                Class clazz = item.getClass();
+                Class<? extends Object> clazz = item.getClass();
 
                 // Lookup the bean properties for the label and value
                 Object label = (labelProperty == null) ? item : 
BeanUtil.getPropertyValue(labelProperty, item);
@@ -292,6 +292,9 @@
 
         // Clean up any temporary state
         this.entries.clear();
+        this.collection = null;
+        this.value = null;
+        this.label = null;
 
         return EVAL_PAGE;
     }


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

Reply via email to