mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-26 06:53:20 +00:00
Use lambdas for short anonymous methods
This commit is contained in:
1 parent
93025510ae
commit
9675585891
16 files changed
+23
-149
No files matched your search
@@ -74,15 +74,7 @@ public final class TerminalHandler
|
||||
}
|
||||
else
|
||||
{
|
||||
TerminalConsoleAppender.setFormatter(new Function<String, String>() {
|
||||
|
||||
@Override
|
||||
public String apply(String text)
|
||||
{
|
||||
return TextFormatting.getTextWithoutFormattingCodes(text);
|
||||
}
|
||||
|
||||
});
|
||||
TerminalConsoleAppender.setFormatter(TextFormatting::getTextWithoutFormattingCodes);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user