forked from phoedos/pmd
Added a test for constructors
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4848 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -202,6 +202,19 @@ public class Foo extends Bar {
|
||||
public synchronized String foo() {
|
||||
return super.foo();
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
<test-code>
|
||||
<description><![CDATA[
|
||||
Constructors are OK
|
||||
]]></description>
|
||||
<expected-problems>0</expected-problems>
|
||||
<code><![CDATA[
|
||||
public class Foo extends Bar {
|
||||
public Foo(String bar) {
|
||||
super(bar);
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
Reference in New Issue
Block a user