commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1227699 - /commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/Validator.java
Date Thu, 05 Jan 2012 17:07:37 GMT
Author: simonetripodi
Date: Thu Jan  5 17:07:36 2012
New Revision: 1227699

URL: http://svn.apache.org/viewvc?rev=1227699&view=rev
Log:
fixed findbugs violation: Class org.apache.commons.validator.Validator defines non-transient
non-serializable instance field classLoader

Modified:
    commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/Validator.java

Modified: commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/Validator.java
URL: http://svn.apache.org/viewvc/commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/Validator.java?rev=1227699&r1=1227698&r2=1227699&view=diff
==============================================================================
--- commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/Validator.java
(original)
+++ commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/Validator.java
Thu Jan  5 17:07:36 2012
@@ -43,7 +43,7 @@ public class Validator implements Serial
      */
     public static final String VALIDATOR_ACTION_PARAM =
             "org.apache.commons.validator.ValidatorAction";
-            
+
     /**
      * Resources key the <code>ValidatorResults</code> is stored under.
      * This will be automatically passed into a validation method
@@ -51,7 +51,7 @@ public class Validator implements Serial
      * specified in the method signature.
      */
     public static final String VALIDATOR_RESULTS_PARAM =
-            "org.apache.commons.validator.ValidatorResults";        
+            "org.apache.commons.validator.ValidatorResults";
 
     /**
      * Resources key the <code>Form</code> is stored under.
@@ -60,7 +60,7 @@ public class Validator implements Serial
      * specified in the method signature.
      */
     public static final String FORM_PARAM = "org.apache.commons.validator.Form";
-            
+
     /**
      * Resources key the <code>Field</code> is stored under.
      * This will be automatically passed into a validation method
@@ -77,7 +77,7 @@ public class Validator implements Serial
      */
     public static final String VALIDATOR_PARAM =
             "org.apache.commons.validator.Validator";
-            
+
     /**
      * Resources key the <code>Locale</code> is stored.
      * This will be used to retrieve the appropriate
@@ -95,7 +95,7 @@ public class Validator implements Serial
      * The name of the form to validate
      */
     protected String formName = null;
-    
+
     /**
      * The name of the field on the form to validate
      * @since 1.2.0
@@ -119,7 +119,7 @@ public class Validator implements Serial
      * used to load Digester itself, is used, based on the value of the
      * <code>useContextClassLoader</code> variable.
      */
-    protected ClassLoader classLoader = null;
+    protected transient ClassLoader classLoader = null;
 
     /**
      * Whether or not to use the Context ClassLoader when loading classes
@@ -161,7 +161,7 @@ public class Validator implements Serial
         this.resources = resources;
         this.formName = formName;
     }
-    
+
     /**
      * Construct a <code>Validator</code> that will
      * use the <code>ValidatorResources</code>
@@ -223,7 +223,7 @@ public class Validator implements Serial
     public void setFormName(String formName) {
         this.formName = formName;
     }
-    
+
     /**
      * Sets the name of the field to validate in a form (optional)
      *



Mime
View raw message