Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/GWT_Sandbox/FormEngine/src/com/temp/shared/validators/OptionalMinMaxLengthValueValidator.java

Diff revisions: vs.
  @@ -2,22 +2,18 @@
2 2
3 3 import org.litesoft.core.util.externalization.*;
4 4
5 - public class OptionalMinMaxLengthValueValidator extends MinMaxLengthValueValidator
6 - {
7 - public OptionalMinMaxLengthValueValidator( int minLength, int maxLength )
8 - {
5 + public class OptionalMinMaxLengthValueValidator extends MinMaxLengthValueValidator {
6 + public OptionalMinMaxLengthValueValidator( int minLength, int maxLength ) {
9 7 super( minLength, maxLength );
10 8 }
11 9
12 10 @Override
13 - public E13nData checkValue( Object value )
14 - {
11 + public E13nData checkValue( Object value ) {
15 12 return super.checkValue( (value instanceof String) ? value : "" );
16 13 }
17 14
18 15 @Override
19 - protected E13nData checkString( String userData )
20 - {
16 + protected E13nData checkString( String userData ) {
21 17 return (userData.length() != 0) ? super.checkString( userData ) : null;
22 18 }
23 19 }