litesoft
Diff Revisions
936
vs
937
for /trunk/DeviceDesktopTest/src/org/litesoft/core/typeutils/Strings.java
|
@@ -765,13 +765,14 @@ |
765 |
765 |
|
} |
766 |
766 |
|
} |
767 |
767 |
|
|
768 |
|
- |
public static void assertNotEmptyIfNotNull( String pParamName, String pToBeAsserted ) |
|
768 |
+ |
public static String assertNotEmptyIfNotNull( String pParamName, String pToBeAsserted ) |
769 |
769 |
|
throws IllegalArgumentException |
770 |
770 |
|
{ |
771 |
771 |
|
if ( (pToBeAsserted != null) && (pToBeAsserted.length() == 0) ) |
772 |
772 |
|
{ |
773 |
773 |
|
throw new IllegalArgumentException( pParamName + ": Not allowed to be empty ('')" ); |
774 |
774 |
|
} |
|
775 |
+ |
return pToBeAsserted; |
775 |
776 |
|
} |
776 |
777 |
|
|
777 |
778 |
|
public static void assertNotNullNotEmptyNoSpaces( String pErrorMessage, String pStringToAssert ) |
|
@@ -1182,4 +1183,5 @@ |
1182 |
1183 |
|
{ |
1183 |
1184 |
|
return (pValue == null) ? null : '"' + cvtTextForDisplay( pValue ) + '"'; |
1184 |
1185 |
|
} |
|
1186 |
+ |
|
1185 |
1187 |
|
} |