API Usages Visitor: handle empty (no args or default) constructor explicit invocation via super().

This commit is contained in:
Sergey Patrikeev
2019-03-08 00:30:41 +03:00
parent 826918b04d
commit 80f520457a
4 changed files with 32 additions and 6 deletions
@@ -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>
@@ -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();
}
}