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

20 lines
562 B
HTML

<html>
<body>
Reports classes without a constructor that takes no arguments (i.e. has no parameters).
No-arg constructors are necessary in some contexts. For example, if a class needs to be created using reflection.
<p><b>Example:</b></p>
<pre><code>
public class Bean {
private String name;
public Bean(String name) {
this.name = name;
}
}
</code></pre>
<!-- tooltip end -->
<p>
Use the checkbox below to ignore classes without explicit constructors.
The compiler provides a default no-arg constructor to such classes.
</body>
</html>