Explorar el Código

SDK:
- fix recognition of boolean properties is/set pattern

Normen Hansen hace 11 años
padre
commit
36f807af85
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      jme3-core/src/com/jme3/gde/core/util/PropertyUtils.java

+ 5 - 0
jme3-core/src/com/jme3/gde/core/util/PropertyUtils.java

@@ -64,6 +64,11 @@ public class PropertyUtils {
                 if (name.length() > 0) {
                     name = Character.toLowerCase(name.charAt(0)) + name.substring(1);
                 }
+            } else if (name.startsWith("is")) {
+                name = name.substring(2);
+                if (name.length() > 0) {
+                    name = Character.toLowerCase(name.charAt(0)) + name.substring(1);
+                }
             } else {
                 return null;
             }