mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
API Usages Visitor: handle empty (no args or default) constructor explicit invocation via super().
This commit is contained in:
+5
@@ -10,5 +10,10 @@
|
||||
<line>10</line>
|
||||
<description>Default constructor in 'a.A' is deprecated</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>Test.java</file>
|
||||
<line>16</line>
|
||||
<description>Default constructor in 'a.A' is deprecated</description>
|
||||
</problem>
|
||||
</problems>
|
||||
|
||||
|
||||
+7
@@ -10,3 +10,10 @@ class Test2 {
|
||||
new A() {}
|
||||
}
|
||||
}
|
||||
|
||||
class Test3 extends A {
|
||||
//Here "Default constructor in A is deprecated" warning must be reported.
|
||||
public Test3() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user