Author: ivaynberg
Date: Sat Aug 15 18:01:01 2009
New Revision: 804500

URL: http://svn.apache.org/viewvc?rev=804500&view=rev
Log:
cleaned up warnings

Modified:
    
wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/FormComponent.java

Modified: 
wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/FormComponent.java
URL: 
http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/FormComponent.java?rev=804500&r1=804499&r2=804500&view=diff
==============================================================================
--- 
wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/FormComponent.java
 (original)
+++ 
wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/FormComponent.java
 Sat Aug 15 18:01:01 2009
@@ -107,7 +107,7 @@
                 */
                public Object formComponent(IFormVisitorParticipant component)
                {
-                       if (component instanceof FormComponent)
+                       if (component instanceof FormComponent<?>)
                        {
                                onFormComponent((FormComponent<?>)component);
                        }
@@ -435,7 +435,7 @@
                        }
                }
 
-               if (component instanceof FormComponent)
+               if (component instanceof FormComponent<?>)
                {
                        final FormComponent<?> fc = (FormComponent<?>)component;
                        return visitor.formComponent(fc);
@@ -799,7 +799,8 @@
                {
                        inputName.prepend(id);
                        c = c.getParent();
-                       if (c == null || (c instanceof Form && 
((Form<?>)c).isRootForm()) || c instanceof Page)
+                       if (c == null || (c instanceof Form<?> && 
((Form<?>)c).isRootForm()) ||
+                               c instanceof Page)
                        {
                                break;
                        }
@@ -1269,7 +1270,7 @@
                {
                        return 0;
                }
-               if (validators instanceof IValidator[])
+               if (validators instanceof IValidator<?>[])
                {
                        return ((IValidator[])validators).length;
                }
@@ -1606,7 +1607,7 @@
                        {
                                validator = validators_get(i);
 
-                               if (isNull == false || validator instanceof 
INullAcceptingValidator)
+                               if (isNull == false || validator instanceof 
INullAcceptingValidator<?>)
                                {
                                        validator.validate(validatable);
                                }


Reply via email to