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:
Wouter Zelle
2006-11-30 21:09:59 +00:00
parent d423cce0f4
commit c5bb8e569f

View File

@ -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>