Commit 1bbe2dbf9d81099df6e6503bc6a2a00dbf03443c
1 parent
bbdf437a
Fix some very minor checkstyle violations
Showing
4 changed files
with
12 additions
and
7 deletions
src/client/java/com/mumfrey/liteloader/modconfig/AbstractConfigPanel.java
@@ -105,7 +105,7 @@ public abstract class AbstractConfigPanel implements ConfigPanel | @@ -105,7 +105,7 @@ public abstract class AbstractConfigPanel implements ConfigPanel | ||
105 | /** | 105 | /** |
106 | * Base for config option handle structs | 106 | * Base for config option handle structs |
107 | */ | 107 | */ |
108 | - static abstract class ConfigOption | 108 | + abstract static class ConfigOption |
109 | { | 109 | { |
110 | void onTick() | 110 | void onTick() |
111 | { | 111 | { |
@@ -303,7 +303,7 @@ public abstract class AbstractConfigPanel implements ConfigPanel | @@ -303,7 +303,7 @@ public abstract class AbstractConfigPanel implements ConfigPanel | ||
303 | @Override | 303 | @Override |
304 | public ConfigTextField setRegex(String regex, boolean force) | 304 | public ConfigTextField setRegex(String regex, boolean force) |
305 | { | 305 | { |
306 | - this.textField.setRegex(Pattern.compile(regex), force);; | 306 | + this.textField.setRegex(Pattern.compile(regex), force); |
307 | return this; | 307 | return this; |
308 | } | 308 | } |
309 | 309 | ||
@@ -343,7 +343,8 @@ public abstract class AbstractConfigPanel implements ConfigPanel | @@ -343,7 +343,8 @@ public abstract class AbstractConfigPanel implements ConfigPanel | ||
343 | } | 343 | } |
344 | else | 344 | else |
345 | { | 345 | { |
346 | - this.setValidator((text) -> { | 346 | + this.setValidator((text) -> |
347 | + { | ||
347 | this.validate(text); | 348 | this.validate(text); |
348 | return true; | 349 | return true; |
349 | }); | 350 | }); |
src/main/java/com/mumfrey/liteloader/permissions/PermissionsManagerClient.java
@@ -47,7 +47,7 @@ public final class PermissionsManagerClient implements PermissionsManager, Plugi | @@ -47,7 +47,7 @@ public final class PermissionsManagerClient implements PermissionsManager, Plugi | ||
47 | * Permissions permissible which is a proxy for permissions that are common | 47 | * Permissions permissible which is a proxy for permissions that are common |
48 | * to all mods. | 48 | * to all mods. |
49 | */ | 49 | */ |
50 | - private final static Permissible allMods = new PermissibleAllMods(); | 50 | + private static final Permissible allMods = new PermissibleAllMods(); |
51 | 51 | ||
52 | /** | 52 | /** |
53 | * List of registered client mods supporting permissions | 53 | * List of registered client mods supporting permissions |
src/main/java/com/mumfrey/liteloader/transformers/IsolatedClassWriter.java
@@ -69,7 +69,9 @@ public class IsolatedClassWriter extends ClassWriter | @@ -69,7 +69,9 @@ public class IsolatedClassWriter extends ClassWriter | ||
69 | do | 69 | do |
70 | { | 70 | { |
71 | c = c.getSuperclass(); | 71 | c = c.getSuperclass(); |
72 | - } while (!c.isAssignableFrom(d)); | 72 | + } |
73 | + while (!c.isAssignableFrom(d)); | ||
74 | + | ||
73 | return c.getName().replace('.', '/'); | 75 | return c.getName().replace('.', '/'); |
74 | } | 76 | } |
75 | } | 77 | } |
src/main/java/com/mumfrey/liteloader/util/jinput/ComponentRegistry.java
@@ -98,7 +98,8 @@ public class ComponentRegistry | @@ -98,7 +98,8 @@ public class ComponentRegistry | ||
98 | components.add(component); | 98 | components.add(component); |
99 | } | 99 | } |
100 | 100 | ||
101 | - } while (component != null && components.size() < 32); | 101 | + } |
102 | + while (component != null && components.size() < 32); | ||
102 | 103 | ||
103 | return components; | 104 | return components; |
104 | } | 105 | } |
@@ -150,7 +151,8 @@ public class ComponentRegistry | @@ -150,7 +151,8 @@ public class ComponentRegistry | ||
150 | controllers.add(controller); | 151 | controllers.add(controller); |
151 | } | 152 | } |
152 | 153 | ||
153 | - } while (controller != null && controllers.size() < 32); | 154 | + } |
155 | + while (controller != null && controllers.size() < 32); | ||
154 | 156 | ||
155 | return controllers; | 157 | return controllers; |
156 | } | 158 | } |