1 /*xml 2 <module name="Checker"> 3 <module name="TreeWalker"> 4 <module name="MemberName"/> 5 <module name="ConstantName"/> 6 <module name="ParameterNumber"> 7 <property name="id" value="ParamNumberId"/> 8 </module> 9 <module name= 10 "NoWhitespaceAfter"/> 11 <module name="SuppressWarningsHolder"/> 12 </module> 13 <module name="SuppressWarningsFilter"/> 14 </module> 15 */ 16 17 package com.puppycrawl.tools.checkstyle.checks.annotation.suppresswarningsholder; 18 19 // xdoc section -- start 20 class Example1 { 21 private int K; // violation, 'Name 'K' must match pattern' 22 @SuppressWarnings({"membername"}) 23 private int J; // violation suppressed 24 25 private static final int i = 0; // violation, 'Name 'i' must match pattern' 26 @SuppressWarnings("checkstyle:constantname") 27 private static final int m = 0; // violation suppressed 28 29 @SuppressWarnings("ParamNumberId") 30 public void needsLotsOfParameters1 (int a, // violation suppressed 31 int b, int c, int d, int e, int f, int g, int h) { 32 // ... 33 } 34 35 private int [] ARR; // violation ''int' is followed by whitespace' 36 // violation above, 'Name 'ARR' must match pattern' 37 @SuppressWarnings("all") 38 private int [] ARRAY; // violations suppressed 39 } 40 // xdoc section -- end