Fix typos
See gh-30773
This commit is contained in:
@@ -213,7 +213,7 @@ public final class Metadata {
|
||||
.filter((item) -> item.isOfItemType(this.itemType) && name.equals(item.getName()))
|
||||
.collect(Collectors.toList());
|
||||
if (candidates.size() > 1) {
|
||||
throw new IllegalStateException("More that one metadata item with name '" + name + "': " + candidates);
|
||||
throw new IllegalStateException("More than one metadata item with name '" + name + "': " + candidates);
|
||||
}
|
||||
return (candidates.size() == 1) ? candidates.get(0) : null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user