forked from phoedos/pmd
@ -48,4 +48,27 @@ private static Singleton instance = null;
|
||||
]]>
|
||||
</code>
|
||||
</test-code>
|
||||
</test-data>
|
||||
|
||||
<test-code>
|
||||
<description><![CDATA[
|
||||
OK! Has two different getInstance() in different classes
|
||||
]]></description>
|
||||
<expected-problems>0</expected-problems>
|
||||
<code>
|
||||
<![CDATA[
|
||||
final class Siblings {
|
||||
static class Inner1 {
|
||||
static Inner1 getInstance() { return null; }
|
||||
}
|
||||
static class Inner2 {
|
||||
static Inner2 getInstance() { return null; }
|
||||
}
|
||||
}
|
||||
]]>
|
||||
</code>
|
||||
</test-code>
|
||||
|
||||
|
||||
|
||||
|
||||
</test-data>
|
||||
|
Reference in New Issue
Block a user