1 /*xml 2 <module name="Checker"> 3 <module name="SuppressWithNearbyTextFilter"/> 4 <module name="TreeWalker"> 5 <module name="MagicNumber"/> 6 </module> 7 </module> 8 */ 9 package com.puppycrawl.tools.checkstyle.filters.suppresswithnearbytextfilter; 10 // xdoc section -- start 11 public class Example1 { 12 int hoursInDay = 24; // SUPPRESS CHECKSTYLE because it is too obvious 13 int daysInWeek = 7; // violation, "'7' is a magic number." 14 } 15 // xdoc section -- end