This is an automated email from the ASF dual-hosted git repository.

derjan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/empire-db.git


The following commit(s) were added to refs/heads/master by this push:
     new a4e65f7  EMPIREDB-302
a4e65f7 is described below

commit a4e65f797f79abe444d4cabf4a63a8b85319d05f
Author: Jan Glaubitz <[email protected]>
AuthorDate: Tue Sep 3 07:56:34 2019 +0200

    EMPIREDB-302
    
    - compatibility for newer java versions
---
 .../java/org/apache/empire/jsf2/controls/CheckboxInputControl.java   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/CheckboxInputControl.java
 
b/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/CheckboxInputControl.java
index a30464b..1507703 100644
--- 
a/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/CheckboxInputControl.java
+++ 
b/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/CheckboxInputControl.java
@@ -55,12 +55,15 @@ public class CheckboxInputControl extends InputControl
         writer.startElement(HTML_TAG_DIV, null);
         if (value == null)
         {
+               // value not set
                writer.writeAttribute(HTML_ATTR_CLASS, "eTypeBoolNull", null);
-        } else if (value == Boolean.TRUE)
+        } else if (value) 
         {
+               // value is true
                writer.writeAttribute(HTML_ATTR_CLASS, "eTypeBoolTrue", null);
         } else
         {
+               // value is false
                writer.writeAttribute(HTML_ATTR_CLASS, "eTypeBoolFalse", null);
         }
         writer.append(HTML_EXPR_NBSP);

Reply via email to