moving tests to CE

This commit is contained in:
Dmitry Jemerov
2009-09-25 20:50:41 +04:00
parent debc16135f
commit 96ed6ab4dc
3 changed files with 6 additions and 0 deletions
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems>
<problem>
<file>X.java</file>
<line>5</line>
<problem_class>Duplicate throws</problem_class>
<description>Duplicate throws</description>
</problem>
<problem>
<file>X.java</file>
<line>10</line>
<problem_class>Duplicate throws</problem_class>
<description>There is a more general exception, 'java.lang.Exception' in the throws list already.</description>
</problem>
<problem>
<file>X.java</file>
<line>18</line>
<problem_class severity="WARNING" attribute_key="NOT_USED_ELEMENT_ATTRIBUTES">Duplicate throws</problem_class>
<description>Duplicate throws</description>
</problem>
<problem>
<file>X.java</file>
<line>19</line>
<problem_class severity="WARNING" attribute_key="NOT_USED_ELEMENT_ATTRIBUTES">Duplicate throws</problem_class>
<description>Duplicate throws</description>
</problem>
</problems>
@@ -0,0 +1,24 @@
import java.io.*;
public class X {
void f() throws
Exception,
Exception {
}
void f2() throws
Exception,
IllegalArgumentException {
}
void f3() throws
FileNotFoundException,
EOFException {
}
public void TTT() throws
FileNotFoundException,
EOFException,
FileNotFoundException,
EOFException {
}
}