Use Assert.notNull for null check.

Closes #3441
This commit is contained in:
Hyeon Sung
2024-04-22 20:46:05 +09:00
committed by Mark Paluch
parent f272539db0
commit 8aa6852391

View File

@@ -136,10 +136,8 @@ public class JpaMetamodelMappingContext
JpaMetamodel metamodel = getMetamodel(type);
if (metamodel == null) {
throw new IllegalArgumentException(String.format("Required JpaMetamodel not found for %s", type));
}
Assert.notNull(metamodel, () -> String.format("Required JpaMetamodel not found for %s", type));
return metamodel;
}