Commit 21985ba43fb4d333f66b035399e1687c328e6379
1 parent
5c199cbf
Fix some very minor checkstyle violations
Showing
5 changed files
with
14 additions
and
8 deletions
src/client/java/com/mumfrey/liteloader/client/GameEngineClient.java
... | ... | @@ -204,7 +204,8 @@ public class GameEngineClient implements GameEngine<Minecraft, IntegratedServer> |
204 | 204 | int index = GameEngineClient.CATEGORY_SORT_INDEX_START; |
205 | 205 | for (Integer value : categorySort.values()) |
206 | 206 | { |
207 | - if (value.intValue() >= index) { | |
207 | + if (value.intValue() >= index) | |
208 | + { | |
208 | 209 | index = value.intValue() + 1; |
209 | 210 | } |
210 | 211 | } | ... | ... |
src/client/java/com/mumfrey/liteloader/modconfig/AbstractConfigPanel.java
... | ... | @@ -105,7 +105,7 @@ public abstract class AbstractConfigPanel implements ConfigPanel |
105 | 105 | /** |
106 | 106 | * Base for config option handle structs |
107 | 107 | */ |
108 | - static abstract class ConfigOption | |
108 | + abstract static class ConfigOption | |
109 | 109 | { |
110 | 110 | void onTick() |
111 | 111 | { |
... | ... | @@ -302,7 +302,7 @@ public abstract class AbstractConfigPanel implements ConfigPanel |
302 | 302 | @Override |
303 | 303 | public ConfigTextField setRegex(String regex, boolean force) |
304 | 304 | { |
305 | - this.textField.setRegex(Pattern.compile(regex), force);; | |
305 | + this.textField.setRegex(Pattern.compile(regex), force); | |
306 | 306 | return this; |
307 | 307 | } |
308 | 308 | |
... | ... | @@ -342,7 +342,8 @@ public abstract class AbstractConfigPanel implements ConfigPanel |
342 | 342 | } |
343 | 343 | else |
344 | 344 | { |
345 | - this.setValidator((text) -> { | |
345 | + this.setValidator((text) -> | |
346 | + { | |
346 | 347 | this.validate(text); |
347 | 348 | return true; |
348 | 349 | }); | ... | ... |
src/main/java/com/mumfrey/liteloader/permissions/PermissionsManagerClient.java
... | ... | @@ -47,7 +47,7 @@ public final class PermissionsManagerClient implements PermissionsManager, Plugi |
47 | 47 | * Permissions permissible which is a proxy for permissions that are common |
48 | 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 | 53 | * List of registered client mods supporting permissions | ... | ... |
src/main/java/com/mumfrey/liteloader/transformers/IsolatedClassWriter.java
src/main/java/com/mumfrey/liteloader/util/jinput/ComponentRegistry.java
... | ... | @@ -98,7 +98,8 @@ public class ComponentRegistry |
98 | 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 | 104 | return components; |
104 | 105 | } |
... | ... | @@ -150,7 +151,8 @@ public class ComponentRegistry |
150 | 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 | 157 | return controllers; |
156 | 158 | } | ... | ... |