This commit is contained in:
parent
76880ae4e2
commit
c4416ef631
@ -5,7 +5,7 @@ final class Test {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* This is singleton */
|
/* This is singleton */
|
||||||
public object getInstance() {
|
public static object getInstance() {
|
||||||
static object $instance;
|
static object $instance;
|
||||||
if(!$instance) {
|
if(!$instance) {
|
||||||
$instance = new Test();
|
$instance = new Test();
|
||||||
|
Loading…
Reference in New Issue
Block a user