click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r1035954 - /click/trunk/click/framework/src/org/apache/click/control/Field.java
Date Wed, 17 Nov 2010 08:57:49 GMT
Author: sabob
Date: Wed Nov 17 08:57:49 2010
New Revision: 1035954

URL: http://svn.apache.org/viewvc?rev=1035954&view=rev
Log:
cleanup

Modified:
    click/trunk/click/framework/src/org/apache/click/control/Field.java

Modified: click/trunk/click/framework/src/org/apache/click/control/Field.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/control/Field.java?rev=1035954&r1=1035953&r2=1035954&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/control/Field.java (original)
+++ click/trunk/click/framework/src/org/apache/click/control/Field.java Wed Nov 17 08:57:49
2010
@@ -748,8 +748,8 @@ public abstract class Field extends Abst
                     return readonly;
                 }
             } else if (control instanceof Form) {
-                Form form = (Form) control;
-                if (form.isReadonly()) {
+                Form localForm = (Form) control;
+                if (localForm.isReadonly()) {
                     return true;
                 } else {
                     return readonly;
@@ -1172,10 +1172,10 @@ public abstract class Field extends Abst
      * @return a normalized label for error message display
      */
     protected String getErrorLabel() {
-        String label = getLabel().trim();
-        label = (label.endsWith(":"))
-                ? label.substring(0, label.length() - 1) : label;
-        return label;
+        String localLabel = getLabel().trim();
+        localLabel = (localLabel.endsWith(":"))
+                ? localLabel.substring(0, localLabel.length() - 1) : localLabel;
+        return localLabel;
     }
 
     /**



Mime
View raw message