Fixed issues with //copy

This commit is contained in:
MattBDev 2019-05-31 10:41:05 -04:00
parent aea5b68ced
commit 3eb7200ea0

View File

@ -40,13 +40,7 @@ public class Registry<V> implements Iterable<V> {
this.name = name; this.name = name;
} }
public @Nullable V get(final CharSequence key) { public @Nullable V get(final String key) {
return this.map.get(key);
}
@Nullable
public V get(final String key) {
checkState(key.equals(key.toLowerCase(Locale.ROOT)), "key must be lowercase");
return this.map.get(key); return this.map.get(key);
} }