1 /*xml 2 <module name="Checker"> 3 <module name="TreeWalker"> 4 <module name="MemberName"/> 5 </module> 6 </module> 7 */ 8 9 package com.puppycrawl.tools.checkstyle.checks.naming.membername; 10 11 // xdoc section -- start 12 class Example1 { 13 public int num1; 14 protected int num2; 15 final int num3 = 3; 16 private int num4; 17 18 static int num5; 19 public static final int CONSTANT = 1; 20 21 public int NUM1; // violation 'Name 'NUM1' must match pattern' 22 23 protected int NUM2; // violation 'Name 'NUM2' must match pattern' 24 25 int NUM3; // violation 'Name 'NUM3' must match pattern' 26 27 private int NUM4; // violation 'Name 'NUM4' must match pattern' 28 29 } 30 // xdoc section -- end