Files
openide/java/java-impl/resources/inspectionDescriptions/NonFinalFieldOfException.html
Leonid Shalupov 40795fe787 IJI-2422: community/java: move resources under resources root
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
2025-02-05 04:43:28 +00:00

14 lines
489 B
HTML

<html>
<body>
Reports fields in subclasses of <code>java.lang.Exception</code> that are not declared <code>final</code>.
<p>Data on exception objects should not be modified
because this may result in losing the error context for later debugging and logging.</p>
<p><b>Example:</b></p>
<pre><code>
public class EditorException extends Exception {
private String message; // warning: Non-final field 'message' of exception class
}
</code></pre>
<!-- tooltip end -->
</body>
</html>