1 /*xml 2 <module name="Checker"> 3 <module name="TreeWalker"> 4 <module name="AbstractClassName"> 5 <property name="format" value="^Generator.+$"/> 6 </module> 7 </module> 8 </module> 9 10 11 */ 12 13 package com.puppycrawl.tools.checkstyle.checks.naming.abstractclassname; 14 15 // xdoc section -- start 16 class Example4 { 17 // violation below 'must match pattern' 18 abstract class AbstractFirst {} 19 abstract class Second {} // violation 'must match pattern' 20 class AbstractThird {} 21 class Fourth {} 22 abstract class GeneratorFifth {} 23 class GeneratorSixth {} // violation 'must be declared as 'abstract'' 24 } 25 // xdoc section -- end