View Javadoc
1   /*
2   com.puppycrawl.tools.checkstyle.checks.SuppressWarningsHolder
3   aliasList = (default)
4   
5   
6   */
7   
8   package com.puppycrawl.tools.checkstyle.checks.suppresswarningsholder;
9   
10  public class InputSuppressWarningsHolder2
11  {
12      public static class MyResource implements AutoCloseable {
13          @Override
14          public void close() throws Exception { }
15      }
16  
17      public static void main(String[] args) throws Exception {
18          try (@SuppressWarnings("all") final MyResource resource = new MyResource()) { }
19          try (@MyAnnotation("all") final MyResource resource = new MyResource()) { }
20      }
21  }
22  @interface MyAnnotation {
23      String[] value();
24  }