1 /* 2 SuppressionXpathFilter 3 file = (file)InputSuppressionXpathFilterEscapeString.xml 4 optional = (default)false 5 6 com.puppycrawl.tools.checkstyle.checks.coding.IllegalTokenTextCheck 7 format = [^a-zA-z0-9]* 8 ignoreCase = (default)false 9 message = (default) 10 tokens = STRING_LITERAL 11 12 */ 13 package com.puppycrawl.tools.checkstyle.filters.suppressionxpathfilter; 14 15 public class InputSuppressionXpathFilterEscapeString { 16 17 String quoteChar = "\"escaped\""; // filtered violation 'illegal pattern' 18 19 String lessChar = "<escaped"; // filtered violation 'illegal pattern' 20 21 String ampersandChar = "&escaped"; // filtered violation 'illegal pattern' 22 23 String greaterChar = ">escaped"; // filtered violation 'illegal pattern' 24 25 String newLineChar = "escaped\n"; // filtered violation 'illegal pattern' 26 27 String specialChar = "escaped\r"; // filtered violation 'illegal pattern' 28 29 String aposChar = "'escaped'"; // filtered violation 'illegal pattern' 30 31 String unicodeCharOne = "语言处理Char"; // violation 32 33 String unicodeCharTwo = "ǯChar"; // violation 34 }