click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bck...@apache.org
Subject svn commit: r986276 - in /click/trunk/click/framework/src/org/apache/click: control/Form.java service/VelocityTemplateService.java
Date Tue, 17 Aug 2010 11:55:04 GMT
Author: bckfnn
Date: Tue Aug 17 11:55:04 2010
New Revision: 986276

URL: http://svn.apache.org/viewvc?rev=986276&view=rev
Log:
removed un-needed instanceof.

Modified:
    click/trunk/click/framework/src/org/apache/click/control/Form.java
    click/trunk/click/framework/src/org/apache/click/service/VelocityTemplateService.java

Modified: click/trunk/click/framework/src/org/apache/click/control/Form.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/control/Form.java?rev=986276&r1=986275&r2=986276&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/control/Form.java (original)
+++ click/trunk/click/framework/src/org/apache/click/control/Form.java Tue Aug 17 11:55:04
2010
@@ -1000,7 +1000,7 @@ public class Form extends AbstractContai
             if (field instanceof Button) {
                 getButtonList().remove(field);
 
-            } else if (field instanceof Field) {
+            } else {
                 getFieldList().remove(field);
             }
         }

Modified: click/trunk/click/framework/src/org/apache/click/service/VelocityTemplateService.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/service/VelocityTemplateService.java?rev=986276&r1=986275&r2=986276&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/service/VelocityTemplateService.java
(original)
+++ click/trunk/click/framework/src/org/apache/click/service/VelocityTemplateService.java
Tue Aug 17 11:55:04 2010
@@ -701,7 +701,7 @@ public class VelocityTemplateService imp
             this.logger = configService.getLogService();
 
             Integer level = (Integer) rs.getApplicationAttribute(LOG_LEVEL);
-            if (level instanceof Integer) {
+            if (level != null) {
                 logLevel = level;
 
             } else {



Mime
View raw message