Merge pull request #1 from akshatbahety/patch-2

Singleton Test Case
This commit is contained in:
Akshat Bahety
2018-04-23 10:32:32 +05:30
committed by GitHub

View File

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