Fix typos

See gh-30773
This commit is contained in:
Andy Wilkinson
2022-05-03 14:09:37 +01:00
parent 561526f802
commit f6d24dc1a8
48 changed files with 63 additions and 64 deletions

View File

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