Guest User

Try with a final resource

a guest
Oct 18th, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1. package net.sourceforge.pmd.lang.java.ast;
  2.  
  3. public class MyClass extends Node {
  4.   public static void myMethod(final double doubleArg, String stringArg) {
  5.     final int i = 0;
  6.  
  7.     try(final Closeable closeable = new Closeable()) {
  8.       i = 1;
  9.     } catch (final Exception e) {
  10.     }
  11.   }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment