1 /* 2 com.puppycrawl.tools.checkstyle.filters.SuppressionXpathSingleFilter 3 query = //LPAREN 4 5 ParenPad 6 option = (default)nospace 7 tokens = (default)ANNOTATION, ANNOTATION_FIELD_DEF, CTOR_CALL, CTOR_DEF, DOT, \ 8 ENUM_CONSTANT_DEF, EXPR, LITERAL_CATCH, LITERAL_DO, LITERAL_FOR, LITERAL_IF, \ 9 LITERAL_NEW, LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_WHILE, METHOD_CALL, \ 10 METHOD_DEF, QUESTION, RESOURCE_SPECIFICATION, SUPER_CTOR_CALL, LAMBDA, RECORD_DEF 11 12 13 */ 14 15 package com.puppycrawl.tools.checkstyle.checks.whitespace.parenpad; 16 17 class InputParenPadTryWithResourcesAndSuppression { 18 private void tryWithResources() throws Exception { 19 try (AutoCloseable a = null) {} 20 try (AutoCloseable a = null; AutoCloseable b = null) {} 21 try (AutoCloseable a = null; AutoCloseable b = null; ) {} 22 try (AutoCloseable a = null; AutoCloseable b = null; ) {} 23 try ( AutoCloseable a = null) {} // filtered violation ''(' is followed by whitespace.' 24 } 25 }