From 45e225c80beeb8aa8afb6666bdae71310036734d Mon Sep 17 00:00:00 2001 From: Hammy Date: Wed, 16 Dec 2020 18:32:33 +0000 Subject: [PATCH] Not instantiating when class is created --- Design Patterns/src/singleton/SingleObject.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Design Patterns/src/singleton/SingleObject.java b/Design Patterns/src/singleton/SingleObject.java index 4f113a8..5f77ed3 100644 --- a/Design Patterns/src/singleton/SingleObject.java +++ b/Design Patterns/src/singleton/SingleObject.java @@ -2,7 +2,7 @@ package singleton; public class SingleObject { - private static SingleObject instance = new SingleObject(); + private static SingleObject instance; private SingleObject() { }