mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
20 lines
562 B
HTML
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> |