1 /* 2 MethodParamPad 3 allowLineBreaks = (default)false 4 option = \tspace 5 tokens = (default)CTOR_DEF, LITERAL_NEW, METHOD_CALL, METHOD_DEF, SUPER_CTOR_CALL, \ 6 ENUM_CONSTANT_DEF, RECORD_DEF, RECORD_PATTERN_DEF 7 8 9 */ 10 11 package com.puppycrawl.tools.checkstyle.checks.whitespace.methodparampad; 12 13 public class InputMethodParamPadSetOptionTrim { 14 15 public void method1() { // violation ''(' is not preceded with whitespace' 16 int a = 1, b = 2; 17 if (a > b) { 18 System.out.println (a); 19 } 20 } 21 22 public int method2 () { 23 return 1; 24 } 25 26 public Boolean method3() { // violation ''(' is not preceded with whitespace' 27 if (4 < 5) { 28 return true; 29 } 30 return false; 31 } 32 }