Config fix

This commit is contained in:
Aleksey 2020-12-13 00:18:24 +03:00
parent 15ea52ed7e
commit 9b5dee0917
2 changed files with 11 additions and 10 deletions

View file

@ -69,6 +69,11 @@ public class ConfigKey {
return true;
}
@Override
public String toString() {
return String.format("%s:%s:%s", owner, category, entry);
}
private void validate(String owner, String category, String entry) {
if (owner == null) {
throw new NullPointerException("Failed to create ConfigKey: 'owner' can't be null.");