Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fe625c4

Browse filesBrowse 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
Copy full SHA for fe625c4

1 file changed

+1-1Lines changed: 1 addition & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • singleton/src/main/java/com/iluwatar
Expand file treeCollapse file tree
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: singleton/src/main/java/com/iluwatar/App.java
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.