Checkstyle: Add 'WhitespaceAfter' check, fix some violations
This commit is contained in:
parent
e2e2c6bb79
commit
58e04556ee
@ -6,7 +6,7 @@
|
|||||||
<module name="Checker">
|
<module name="Checker">
|
||||||
<property name="charset" value="UTF-8"/>
|
<property name="charset" value="UTF-8"/>
|
||||||
<property name="severity" value="warning"/>
|
<property name="severity" value="warning"/>
|
||||||
<property name="fileExtensions" value="java, properties, xml"/>
|
<property name="fileExtensions" value="java"/>
|
||||||
|
|
||||||
<module name="SuppressWarningsFilter" />
|
<module name="SuppressWarningsFilter" />
|
||||||
|
|
||||||
@ -32,6 +32,7 @@
|
|||||||
<property name="format" value="TODO(?! #\d+:)|FIXME"/>
|
<property name="format" value="TODO(?! #\d+:)|FIXME"/>
|
||||||
</module>
|
</module>
|
||||||
<module name="GenericWhitespace"/>
|
<module name="GenericWhitespace"/>
|
||||||
|
<module name="WhitespaceAfter"/>
|
||||||
<module name="AvoidStarImport"/>
|
<module name="AvoidStarImport"/>
|
||||||
<module name="RedundantImport"/>
|
<module name="RedundantImport"/>
|
||||||
<module name="UnusedImports"/>
|
<module name="UnusedImports"/>
|
||||||
|
|||||||
@ -161,7 +161,7 @@ public class ValidationService implements Reloadable {
|
|||||||
if (restriction.startsWith("regex:")) {
|
if (restriction.startsWith("regex:")) {
|
||||||
restriction = restriction.replace("regex:", "");
|
restriction = restriction.replace("regex:", "");
|
||||||
} else {
|
} else {
|
||||||
restriction = restriction.replaceAll("\\*","(.*)");
|
restriction = restriction.replace("*", "(.*)");
|
||||||
}
|
}
|
||||||
if (ip.matches(restriction)) {
|
if (ip.matches(restriction)) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@ -99,7 +99,8 @@ public class BungeeReceiver implements PluginMessageListener, SettingsDependent
|
|||||||
try {
|
try {
|
||||||
argument = in.readUTF();
|
argument = in.readUTF();
|
||||||
} catch (IllegalStateException e) {
|
} catch (IllegalStateException e) {
|
||||||
ConsoleLogger.warning("Received invalid plugin message of type " + type.get().name() + ": argument is missing!");
|
ConsoleLogger.warning("Received invalid plugin message of type " + type.get().name()
|
||||||
|
+ ": argument is missing!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user