Update src/test/java/com/designpatterns/singletonpattern/SingletonTest.java
Removed println statement Co-Authored-By: Libin Yang <contact@yanglibin.info>
This commit is contained in:
parent
ea6c4e5a8a
commit
4a3f871218
@ -23,7 +23,6 @@ public class SingletonTest {
|
|||||||
try {
|
try {
|
||||||
Singleton singletonInstance = Singleton.getInstance();
|
Singleton singletonInstance = Singleton.getInstance();
|
||||||
int singletonInsCode = singletonInstance.hashCode();
|
int singletonInsCode = singletonInstance.hashCode();
|
||||||
System.out.println(singletonInsCode);
|
|
||||||
hashCodeList.add(singletonInsCode);
|
hashCodeList.add(singletonInsCode);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
System.out.println("Exception is caught");
|
System.out.println("Exception is caught");
|
||||||
|
Loading…
Reference in New Issue
Block a user