[ann] Default template inspection fixed to work on multi-catch sections

This commit is contained in:
Roman Shevchenko
2011-05-03 21:10:10 +02:00
parent 8072b38603
commit 23087cdf9c
7 changed files with 118 additions and 23 deletions
@@ -96,4 +96,16 @@
<description>Default File template</description>
</problem>
<problem>
<file>X.java</file>
<line>63</line>
<package>x</package>
<class>
<name>X</name>
<display_name>X</display_name>
</class>
<problem_class>Default File Template Usage</problem_class>
<description>Default File template</description>
</problem>
</problems>
@@ -1,5 +1,5 @@
package x;
import java.io.File;
import java.io.*;
/**
* Created by IntelliJ IDEA.
@@ -23,7 +23,7 @@ public class X implements Runnable{
}
}
private void g() {
private void g() throws EOFException, FileNotFoundException {
//To change body of created methods use File | Settings | File Templates.
}
@@ -56,5 +56,12 @@ public class X implements Runnable{
super.finalize();
}
private void multi() {
try {
g();
} catch (EOFException | FileNotFoundException ex) {
ex.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
}
}
}