mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-24 03:05:49 +01:00
Add more checkstyle rules
This commit is contained in:
parent
636c020772
commit
78a8495399
@ -45,9 +45,32 @@
|
|||||||
<module name="RedundantImport"/>
|
<module name="RedundantImport"/>
|
||||||
<module name="UnusedImports"/>
|
<module name="UnusedImports"/>
|
||||||
|
|
||||||
|
<!-- See https://checkstyle.org/config_whitespace.html -->
|
||||||
|
<module name="GenericWhitespace"/>
|
||||||
|
<module name="MethodParamPad"/>
|
||||||
|
<module name="NoLineWrap"/>
|
||||||
|
<module name="NoWhitespaceAfter"/>
|
||||||
|
<module name="NoWhitespaceBefore"/>
|
||||||
|
<module name="OperatorWrap"/>
|
||||||
|
<module name="ParenPad">
|
||||||
|
<property name="option" value="space"/>
|
||||||
|
<property name="tokens" value="ANNOTATION_FIELD_DEF, CTOR_CALL, DOT, ENUM_CONSTANT_DEF, EXPR, LITERAL_CATCH, LITERAL_DO, LITERAL_FOR, LITERAL_IF, LITERAL_NEW, LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_WHILE, METHOD_CALL, QUESTION, RESOURCE_SPECIFICATION, SUPER_CTOR_CALL, LAMBDA"/>
|
||||||
|
</module>
|
||||||
|
<module name="SingleSpaceSeparator"/>
|
||||||
|
<module name="TypecastParenPad"/>
|
||||||
|
<module name="WhitespaceAfter"/>
|
||||||
|
<module name="WhitespaceAround"/>
|
||||||
|
|
||||||
<!-- See http://checkstyle.sourceforge.net/config_modifiers.html -->
|
<!-- See http://checkstyle.sourceforge.net/config_modifiers.html -->
|
||||||
<module name="ModifierOrder"/>
|
<module name="ModifierOrder"/>
|
||||||
|
|
||||||
|
<!-- See https://checkstyle.org/config_blocks.html -->
|
||||||
|
<module name="AvoidNestedBlocks"/>
|
||||||
|
<module name="LeftCurly">
|
||||||
|
<property name="option" value="nl"/>
|
||||||
|
</module>
|
||||||
|
<module name="RightCurly"/>
|
||||||
|
|
||||||
<!-- See http://checkstyle.sourceforge.net/config_design.html -->
|
<!-- See http://checkstyle.sourceforge.net/config_design.html -->
|
||||||
<module name="FinalClass"/>
|
<module name="FinalClass"/>
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ public class YamlReconnectHandler extends AbstractReconnectHandler
|
|||||||
private final File file = new File( "locations.yml" );
|
private final File file = new File( "locations.yml" );
|
||||||
private final ReadWriteLock lock = new ReentrantReadWriteLock();
|
private final ReadWriteLock lock = new ReentrantReadWriteLock();
|
||||||
/*========================================================================*/
|
/*========================================================================*/
|
||||||
private CaseInsensitiveMap< String> data;
|
private CaseInsensitiveMap<String> data;
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public YamlReconnectHandler()
|
public YamlReconnectHandler()
|
||||||
|
Loading…
Reference in New Issue
Block a user