mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-07 11:29:53 +08:00
cleanup code
This commit is contained in:
@@ -35,12 +35,10 @@ public class Validator {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static void checkNotNull(Object reference, String errorMessage) {
|
public static void checkNotNull(Object reference, String errorMessage) {
|
||||||
if (reference == null) {
|
if (reference == null) {
|
||||||
throw new IncorrectParameterException(errorMessage);
|
throw new IncorrectParameterException(errorMessage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user