mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
IDEA-133946 Don't highlight private constructor as unused if it is called by dependency injection engine
This commit is contained in:
@@ -2,6 +2,13 @@ class a extends Exception {
|
||||
private <warning descr="Private constructor 'a(java.lang.String)' is never used">a</warning>(String s) {
|
||||
super(s);
|
||||
}
|
||||
private <warning descr="Private constructor 'a()' is never used">a</warning>(){}
|
||||
}
|
||||
|
||||
class TheOnlyCtr extends Exception {
|
||||
private TheOnlyCtr(String s) {
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
||||
class s extends Exception {
|
||||
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
import java.lang.Override;
|
||||
|
||||
class PrivateConstructor {
|
||||
private final int myA;
|
||||
|
||||
private PrivateConstructor(int a) {
|
||||
myA = a;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return myA;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user