Commit 8e79bf8475e9330bae8bb9fe55810c0411a40d27
1 parent
9269f327
Fix 3 minor warnings/checkstyle problems
Showing
2 changed files
with
5 additions
and
3 deletions
src/client/java/com/mumfrey/liteloader/client/mixin/MixinGuiOverlayDebug.java
| ... | ... | @@ -51,7 +51,8 @@ public abstract class MixinGuiOverlayDebug extends Gui |
| 51 | 51 | return list.size(); |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | - @Redirect(method = "renderDebugInfoLeft()V", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiOverlayDebug;call()Ljava/util/List;")) | |
| 54 | + @Redirect(method = "renderDebugInfoLeft()V", at = @At(value = "INVOKE", | |
| 55 | + target = "Lnet/minecraft/client/gui/GuiOverlayDebug;call()Ljava/util/List;")) | |
| 55 | 56 | private List<String> onCall(GuiOverlayDebug self) |
| 56 | 57 | { |
| 57 | 58 | List<String> list = this.call(); |
| ... | ... | @@ -71,7 +72,8 @@ public abstract class MixinGuiOverlayDebug extends Gui |
| 71 | 72 | return list; |
| 72 | 73 | } |
| 73 | 74 | |
| 74 | - @Redirect(method = "renderDebugInfoRight(Lnet/minecraft/client/gui/ScaledResolution;)V", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiOverlayDebug;getDebugInfoRight()Ljava/util/List;")) | |
| 75 | + @Redirect(method = "renderDebugInfoRight(Lnet/minecraft/client/gui/ScaledResolution;)V", | |
| 76 | + at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiOverlayDebug;getDebugInfoRight()Ljava/util/List;")) | |
| 75 | 77 | private <T extends Comparable<T>> List<String> onGetDebugInfoRight(GuiOverlayDebug self) |
| 76 | 78 | { |
| 77 | 79 | List<String> list = this.getDebugInfoRight(); | ... | ... |
src/main/java/com/mumfrey/liteloader/util/ChatUtilities.java
| ... | ... | @@ -126,7 +126,7 @@ public abstract class ChatUtilities |
| 126 | 126 | return component; |
| 127 | 127 | } |
| 128 | 128 | |
| 129 | - for (ITextComponent oldSibling : ChatUtilities.covertCodesInPlace((List<ITextComponent>)component.getSiblings())) | |
| 129 | + for (ITextComponent oldSibling : ChatUtilities.covertCodesInPlace(component.getSiblings())) | |
| 130 | 130 | { |
| 131 | 131 | newComponent.appendSibling(oldSibling); |
| 132 | 132 | } | ... | ... |