1 /* 2 WhitespaceAfter 3 tokens = LITERAL_TRY 4 5 6 */ 7 8 package com.puppycrawl.tools.checkstyle.checks.whitespace.whitespaceafter; 9 10 import java.io.IOException; 11 import java.io.InputStream; 12 13 public class InputWhitespaceAfterLiteralTry { 14 public static void main(String[] args) throws IOException { 15 try (InputStream ignored = System.in) {} 16 17 try 18 (InputStream ignored = System.in) {} 19 20 try(InputStream ignored = System.in) {} // violation ''try' is not followed by whitespace' 21 22 try {}catch (Exception e){} 23 24 try{}catch (Exception e){} // violation ''try' is not followed by whitespace' 25 } 26 }