Polish assertions
This commit is contained in:
@@ -42,7 +42,7 @@ final class SimpleTypeReference extends AbstractTypeReference {
|
||||
}
|
||||
|
||||
static SimpleTypeReference of(String className) {
|
||||
Assert.notNull(className, "ClassName must not be null");
|
||||
Assert.notNull(className, "'className' must not be null");
|
||||
if (!isValidClassName(className)) {
|
||||
throw new IllegalStateException("Invalid class name '" + className + "'");
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ public final class TypeHint implements ConditionalHint {
|
||||
* @return a builder
|
||||
*/
|
||||
public static Builder of(TypeReference type) {
|
||||
Assert.notNull(type, "Type must not be null");
|
||||
Assert.notNull(type, "'type' must not be null");
|
||||
return new Builder(type);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user