Loosen Checkstyle rules for this.

This commit is contained in:
Andrew Steinborn
2020-06-24 11:33:52 -04:00
parent 7eaa6ef939
commit 4bebda2549
2 changed files with 4 additions and 6 deletions

View File

@@ -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;