mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Generic code cleanup
This commit is contained in:
1 parent
332d9c4f18
commit
09aa37fe4a
57 files changed
+415
-344
No files matched your search
@@ -34,14 +34,14 @@ public class PropertyManager {
|
||||
private OptionSet options = null;
|
||||
|
||||
public PropertyManager(final OptionSet options) {
|
||||
this((File)options.valueOf("config"));
|
||||
this((File) options.valueOf("config"));
|
||||
|
||||
this.options = options;
|
||||
}
|
||||
|
||||
private <T> T getOverride(String name, T value) {
|
||||
if ((options != null) && (options.has(name))) {
|
||||
return (T)options.valueOf(name);
|
||||
return (T) options.valueOf(name);
|
||||
}
|
||||
|
||||
return value;
|
||||
|
||||
Reference in new issue
Block a user