diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml index 4509ee489..08a2b3736 100644 --- a/config/checkstyle/checkstyle.xml +++ b/config/checkstyle/checkstyle.xml @@ -29,13 +29,13 @@ - + diff --git a/proxy/src/main/java/com/velocitypowered/proxy/config/AnnotatedConfig.java b/proxy/src/main/java/com/velocitypowered/proxy/config/AnnotatedConfig.java index 07cddfd5e..6b074c02d 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/config/AnnotatedConfig.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/config/AnnotatedConfig.java @@ -26,10 +26,8 @@ import org.apache.logging.log4j.Logger; public abstract class AnnotatedConfig { private static final Logger logger = LogManager.getLogger(AnnotatedConfig.class); - @SuppressWarnings("checkstyle:IllegalTokenText") // Need to follow the TOML spec exactly - private static final Pattern STRING_NEEDS_ESCAPE = Pattern.compile( - "(\"|\\\\|[\\u0000-\\u0008]|[\\u000a-\\u001f]|\\u007f)" - ); + private static final Pattern STRING_NEEDS_ESCAPE + = Pattern.compile("(\"|\\\\|[\\u0000-\\u0008]|[\\u000a-\\u001f]|\\u007f)"); public static Logger getLogger() { return logger;