eclipse: project name should be found in .project (IDEA-52070 )
[fedora-idea.git] / resources-en / src / inspectionDescriptions / DuplicateThrows.html
blobb00906883dddbdffaaa2c8776403231c83900cc6
1 <html>
2 <body>
3 <font face="verdana" size="-1">This inspection reports duplicate classes in the method throws list.
4 <br>For example:
5 <code><pre>
6 <b><font color="#000080">void</font></b> f() <b><font color="#000080">throws</font></b> Exception, <b><font color="#800000">Exception</font></b> {
8 </pre></code>
9 <br>
10 Also, inspection warns if you have declared two exceptions one of which subclasses another.
11 E.g.:
12 <code><pre>
13 <b><font color="#000080">void</font></b> f() <b><font color="#000080">throws</font></b> <b><font color="#800000">IOException</font></b>, Exception {
15 </pre></code>
16 </font>
17 </body>
18 </html>