View Javadoc
1   /*
2   MethodCount
3   maxTotal = (default)100
4   maxPrivate = (default)100
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 InputMethodCount {
16  
17    /**
18     * Dummy inner class to check that the inner-classes methods are not counted
19     * for the outer class.
20     */
21    public class PublicMethodsInnerclassInnerclass {
22      /**
23       * Dummy method doing nothing
24       */
25      public void doNothing50() {
26      }
27  
28      /**
29       * Dummy method doing nothing
30       */
31      public void doNothing51() {
32      }
33  
34      /**
35       * Dummy method doing nothing
36       */
37      public void doNothing52() {
38      }
39  
40      /**
41       * Dummy method doing nothing
42       */
43      public void doNothing53() {
44      }
45  
46      /**
47       * Dummy method doing nothing
48       */
49      public void doNothing54() {
50      }
51    }
52  
53    /**
54     * Dummy inner class to check that the inner-classes methods are not counted
55     * for the outer class.
56     */
57    public interface PublicMethodsInnerInterface {
58      /**
59       * Dummy method doing nothing
60       */
61      public void doNothing60();
62  
63      /**
64       * Dummy method doing nothing
65       */
66      public void doNothing61();
67  
68      /**
69       * Dummy method doing nothing
70       */
71      public abstract void doNothing62();
72  
73      /**
74       * Dummy method doing nothing
75       */
76      abstract void doNothing63();
77  
78      /**
79       * Dummy method doing nothing
80       */
81      void doNothing64();
82    }
83  
84    /**
85     * Dummy method doing nothing
86     */
87    public void doNothing00() {
88    }
89  
90    /**
91     * Dummy method doing nothing
92     */
93    public void doNothing01() {
94    }
95  
96    /**
97     * Dummy method doing nothing
98     */
99    public void doNothing02() {
100   }
101 
102   /**
103    * Dummy method doing nothing
104    */
105   public void doNothing03() {
106   }
107 
108   /**
109    * Dummy method doing nothing
110    */
111   public void doNothing04() {
112   }
113 
114   /**
115    * Dummy method doing nothing
116    */
117   protected void doNothing10() {
118   }
119 
120   /**
121    * Dummy method doing nothing
122    */
123   protected void doNothing11() {
124   }
125 
126   /**
127    * Dummy method doing nothing
128    */
129   protected void doNothing12() {
130   }
131 
132   /**
133    * Dummy method doing nothing
134    */
135   protected void doNothing13() {
136   }
137 
138   /**
139    * Dummy method doing nothing
140    */
141   protected void doNothing14() {
142   }
143 
144   /**
145    * Dummy method doing nothing
146    */
147   void doNothing20() {
148   }
149 
150   /**
151    * Dummy method doing nothing
152    */
153   void doNothing21() {
154   }
155 
156   /**
157    * Dummy method doing nothing
158    */
159   void doNothing22() {
160   }
161 
162   /**
163    * Dummy method doing nothing
164    */
165   void doNothing23() {
166   }
167 
168   /**
169    * Dummy method doing nothing
170    */
171   void doNothing24() {
172   }
173 
174   /**
175    * Dummy method doing nothing
176    */
177   private void doNothing30() {
178   }
179 
180   /**
181    * Dummy method doing nothing
182    */
183   private void doNothing31() {
184   }
185 
186   /**
187    * Dummy method doing nothing
188    */
189   private void doNothing32() {
190   }
191 
192   /**
193    * Dummy method doing nothing
194    */
195   private void doNothing33() {
196   }
197 
198   /**
199    * Dummy method doing nothing
200    */
201   private void doNothing34() {
202   }
203 }