1 /* 2 CatchParameterName 3 format = (default)^(e|t|ex|[a-z][a-z][a-zA-Z]+|_)$ 4 5 6 */ 7 8 package com.puppycrawl.tools.checkstyle.checks.naming.catchparametername; 9 10 import java.io.*; 11 /** 12 * Contains simple mistakes: 13 * - Long lines 14 * - Tabs 15 * - Format of variables and parameters 16 * - Order of modifiers 17 * @author Oliver Burn 18 **/ 19 final class InputCatchParameterNameSimpleOne2 20 { 21 /** test method pattern */ 22 void ALL_UPPERCASE_METHOD() 23 { 24 } 25 26 /** test illegal constant **/ 27 private static final int BAD__NAME = 3; 28 29 // A very, very long line that is OK because it matches the regexp "^.*is OK.*regexp.*$" 30 // long line that has a tab -> <- and would be OK if tab counted as 1 char 31 // tabs that count as one char because of their position -> <- -> <-, OK 32 33 /** some lines to test the violation column after tabs */ 34 void errorColumnAfterTabs() 35 { 36 // with tab-width 8 all statements below start at the same column, 37 // with different combinations of ' ' and '\t' before the statement 38 int tab0 =1; 39 int tab1 =1; 40 int tab2 =1; 41 int tab3 =1; 42 int tab4 =1; 43 int tab5 =1; 44 } 45 46 // MEMME: 47 /* MEMME: a 48 * MEMME: 49 * OOOO 50 */ 51 /* NOTHING */ 52 /* YES */ /* MEMME: x */ /* YES!! */ 53 54 /** test long comments **/ 55 void veryLong() 56 { 57 /* 58 blah blah blah blah 59 blah blah blah blah 60 blah blah blah blah 61 blah blah blah blah 62 blah blah blah blah 63 blah blah blah blah 64 blah blah blah blah 65 blah blah blah blah 66 blah blah blah blah 67 blah blah blah blah 68 blah blah blah blah 69 blah blah blah blah 70 blah blah blah blah 71 blah blah blah blah 72 blah blah blah blah 73 enough talk */ 74 } 75 76 /** 77 * @see to lazy to document all args. Testing excessive # args 78 **/ 79 void toManyArgs(int aArg1, int aArg2, int aArg3, int aArg4, int aArg5, 80 int aArg6, int aArg7, int aArg8, int aArg9) 81 { 82 } 83 }