mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
16 lines
615 B
HTML
16 lines
615 B
HTML
<html>
|
|
<body>
|
|
Reports declaration of an unchecked exception (<code>java.lang.RuntimeException</code> or one of its subclasses) in the <code>throws</code>
|
|
clause of a method.
|
|
<p>Declarations of unchecked exceptions are not required and may be deleted or moved to a Javadoc <code>@throws</code> tag.</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
public class InvalidDataException extends RuntimeException {}
|
|
|
|
class TextEditor {
|
|
void readSettings() throws InvalidDataException {} // warning: Unchecked exception 'InvalidDataException' declared in 'throws' clause
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
</body>
|
|
</html> |