summaryrefslogtreecommitdiff
path: root/forms/qa/integration/forms/TextValidator.java
diff options
context:
space:
mode:
Diffstat (limited to 'forms/qa/integration/forms/TextValidator.java')
-rw-r--r--forms/qa/integration/forms/TextValidator.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/forms/qa/integration/forms/TextValidator.java b/forms/qa/integration/forms/TextValidator.java
index d60c1022fa8b..0ed59dd41cfa 100644
--- a/forms/qa/integration/forms/TextValidator.java
+++ b/forms/qa/integration/forms/TextValidator.java
@@ -44,9 +44,7 @@ public class TextValidator extends integration.forms.ControlValidator
String value = (String)Value;
if ( containsZs( value ) )
return false;
- if ( !isProperChunks( value ) )
- return false;
- return true;
+ return isProperChunks( value );
}
catch( java.lang.Exception e )
{
@@ -61,10 +59,7 @@ public class TextValidator extends integration.forms.ControlValidator
private boolean containsZs( String value )
{
- if ( ( value.indexOf( 'Z' ) != -1 )
- || ( value.indexOf( 'z' ) != -1 )
- )
- return true;
- return false;
+ return ( value.indexOf( 'Z' ) != -1 )
+ || ( value.indexOf( 'z' ) != -1 );
}
}