summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/Forms/SingleControlValidation.java
diff options
context:
space:
mode:
Diffstat (limited to 'odk/examples/DevelopersGuide/Forms/SingleControlValidation.java')
-rw-r--r--odk/examples/DevelopersGuide/Forms/SingleControlValidation.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/odk/examples/DevelopersGuide/Forms/SingleControlValidation.java b/odk/examples/DevelopersGuide/Forms/SingleControlValidation.java
index c22054b46f37..f4c2e0fba29f 100644
--- a/odk/examples/DevelopersGuide/Forms/SingleControlValidation.java
+++ b/odk/examples/DevelopersGuide/Forms/SingleControlValidation.java
@@ -151,7 +151,7 @@ public class SingleControlValidation implements XFormComponentValidityListener
boolean isValid = xComp.isValid();
m_statusField.setPropertyValue("Label", isValid ? "valid" : "invalid" );
- m_statusField.setPropertyValue( "TextColor", new Integer( isValid ? 0x008000 : 0x800000 ) );
+ m_statusField.setPropertyValue( "TextColor", Integer.valueOf( isValid ? 0x008000 : 0x800000 ) );
String validityMessage = "";
if ( !isValid )