1 /* 2 MethodCount 3 maxTotal = 2 4 maxPrivate = 0 5 maxPackage = (default)100 6 maxProtected = (default)100 7 maxPublic = (default)100 8 tokens = (default)CLASS_DEF, ENUM_CONSTANT_DEF, ENUM_DEF, INTERFACE_DEF, ANNOTATION_DEF, RECORD_DEF 9 10 11 */ 12 13 package com.puppycrawl.tools.checkstyle.checks.sizes.methodcount; 14 15 public class InputMethodCount3 { // violation 'Total number of methods is 5 (max allowed is 2).' 16 17 /** 18 * Dummy inner class to check that the inner-classes methods are not counted for the outer class 19 */ 20 /** 21 * Dummy method doing nothing 22 */ 23 void doNothing50() { 24 } 25 26 /** 27 * Dummy method doing nothing 28 */ 29 void doNothing51() { 30 } 31 32 /** 33 * Dummy method doing nothing 34 */ 35 void doNothing52() { 36 } 37 38 /** 39 * Dummy method doing nothing 40 */ 41 void doNothing53() { 42 } 43 44 /** 45 * Dummy method doing nothing 46 */ 47 void doNothing54() { 48 } 49 50 }