Updated parameters to be final
This commit is contained in:
1 parent
804a7619fe
commit
ad4296d6a4
1 file changed
+5
-1
@@ -61,7 +61,11 @@ public abstract class IDevice {
|
|||||||
* @param minCharacterCount passes the minimum number of characters that can be accepted
|
* @param minCharacterCount passes the minimum number of characters that can be accepted
|
||||||
* as an integer.
|
* as an integer.
|
||||||
* */
|
* */
|
||||||
public void stringValidator(String toBeValidated, int minCharacterCount, int maxCharacterCount) {
|
public void stringValidator(final String toBeValidated,
|
||||||
|
final int minCharacterCount,
|
||||||
|
final int maxCharacterCount)
|
||||||
|
{
|
||||||
|
|
||||||
if (toBeValidated == null) {
|
if (toBeValidated == null) {
|
||||||
throw new IllegalArgumentException("Value cannot be null");
|
throw new IllegalArgumentException("Value cannot be null");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user