mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
.class literal usage shall mark all constructors used, not just default one.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems/>
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
import java.lang.Class;
|
||||
import java.lang.String;
|
||||
|
||||
public class Test {
|
||||
public static void main(String[] args) {
|
||||
Test.class.getDeclaredConstructor(String.class).newInstance("Foo");
|
||||
}
|
||||
|
||||
public Test(String param) {
|
||||
System.out.println("This is used!");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user