Polish assertions

This commit is contained in:
Stephane Nicoll
2022-06-21 07:57:11 +02:00
parent 93b340e563
commit 0f4205adbf
16 changed files with 61 additions and 61 deletions

View File

@@ -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 + "'");
}

View File

@@ -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);
}