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