Skip to content

Commit fe625c4

Browse files
committed
Update App.java
it is important to note that the singleton pattern is inherently unsafe for distributed environments, since the initialization state is not mirrored across different instances of the java vm
1 parent 6367335 commit fe625c4

File tree

1 file changed

+1
-1
lines changed
  • singleton/src/main/java/com/iluwatar

1 file changed

+1
-1
lines changed

singleton/src/main/java/com/iluwatar/App.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
*
55
* Singleton pattern ensures that the class (IvoryTower) can have only one
6-
* existing instance and provides global access to that instance.
6+
* existing instance per java vm instance and provides global access to that it.
77
*
88
* http://stackoverflow.com/questions/70689/what-is-an-efficient-way-to-implement-a-singleton-pattern-in-java
99
*

0 commit comments

Comments
 (0)