project: Update checkstyle (#1710)
This commit is contained in:
@@ -137,7 +137,7 @@ subprojects {
|
||||
}
|
||||
|
||||
checkstyle {
|
||||
toolVersion = '6.4.1'
|
||||
toolVersion = '8.25'
|
||||
sourceSets = [sourceSets.main]
|
||||
configFile = file("${rootDir}/checkstyle/checkstyle.xml")
|
||||
configProperties = [ "suppressionFile" : file("${rootDir}/checkstyle/suppressions.xml")]
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
|
||||
"https://checkstyle.org/dtds/configuration_1_3.dtd">
|
||||
<module name="Checker">
|
||||
<module name="SuppressionCommentFilter"/>
|
||||
<module name="TreeWalker">
|
||||
<module name="SuppressionCommentFilter"/>
|
||||
<module name="LeftCurly">
|
||||
<property name="option" value="nl"/>
|
||||
</module>
|
||||
|
||||
@@ -189,7 +189,8 @@ public class GauntletPlugin extends Plugin
|
||||
if (client.getGameState() != GameState.STARTING && client.getGameState() != GameState.UNKNOWN)
|
||||
{
|
||||
completeStartup = false;
|
||||
clientThread.invoke(() -> {
|
||||
clientThread.invoke(() ->
|
||||
{
|
||||
timer.initStates();
|
||||
completeStartup = true;
|
||||
});
|
||||
|
||||
@@ -331,7 +331,8 @@ public class SwingUtil
|
||||
button.setOpaque(true);
|
||||
|
||||
// Selecting the button option requires us to determine which parent element is the JOptionPane
|
||||
button.addActionListener(e -> {
|
||||
button.addActionListener(e ->
|
||||
{
|
||||
JComponent component = (JComponent) e.getSource();
|
||||
while (component != null)
|
||||
{
|
||||
@@ -401,7 +402,8 @@ public class SwingUtil
|
||||
dialog.setIconImage(ImageUtil.getResourceStreamFromClass(SwingUtil.class, "/runeliteplus_transparent.png"));
|
||||
|
||||
// Listen for value changes and close dialog when necessary
|
||||
pane.addPropertyChangeListener(e -> {
|
||||
pane.addPropertyChangeListener(e ->
|
||||
{
|
||||
String prop = e.getPropertyName();
|
||||
|
||||
if (dialog.isVisible()
|
||||
|
||||
Reference in New Issue
Block a user