Remove redundant compiler warning suppressors

feat/data-edit-commands
William 2 years ago
parent df247b41f4
commit 51cf7beeb8

@ -143,7 +143,6 @@ public class Settings {
return Map.entry(name().toLowerCase(), defaultName); return Map.entry(name().toLowerCase(), defaultName);
} }
@SuppressWarnings("unchecked")
private static Map<String, String> getDefaults() { private static Map<String, String> getDefaults() {
return Map.ofEntries(Arrays.stream(values()) return Map.ofEntries(Arrays.stream(values())
.map(TableName::toEntry) .map(TableName::toEntry)
@ -179,7 +178,6 @@ public class Settings {
return Map.entry(name().toLowerCase(), enabledByDefault); return Map.entry(name().toLowerCase(), enabledByDefault);
} }
@SuppressWarnings("unchecked")
private static Map<String, Boolean> getDefaults() { private static Map<String, Boolean> getDefaults() {
return Map.ofEntries(Arrays.stream(values()) return Map.ofEntries(Arrays.stream(values())
.map(SynchronizationFeature::toEntry) .map(SynchronizationFeature::toEntry)

Loading…
Cancel
Save