mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
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> |