Try-with-resources is indented badly if the auto-closables are split into more than one line. The body of the try construct is indented too deeply.
// badly indented
public static void tryWithResources2(String f) {
try (InputStream is = new FileInputStream(new File(f));
InputStream is2 = new FileInputStream(new File(f))) {
is.read();
}
catch(IOException e) {
e.printStackTrace();
}
}