From 35b78331fbdc4c161ef47fa7a6c514c2fcab692b Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Wed, 24 Jun 2020 11:33:52 -0400 Subject: [PATCH] Loosen Checkstyle rules for this. --- config/checkstyle/checkstyle.xml | 4 ++-- .../com/velocitypowered/proxy/config/AnnotatedConfig.java | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) 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;