resource location: speed up namespace validation even more

This commit is contained in:
Bixilon 2023-01-10 13:33:06 +01:00
parent aed5185d98
commit 78de17c383
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -21,7 +21,7 @@ object ResourceLocationUtil {
if (!StaticConfiguration.VALIDATE_RESOURCE_LOCATION) {
return
}
if (namespace.isBlank()) {
if (namespace.isEmpty()) {
throw IllegalArgumentException("Namespace is blank!")
}
for (code in namespace.codePoints()) {