Docs/singleton comparison by shabinfrancis · Pull Request #3529 · iluwatar/java-design-patterns · GitHub
Skip to content

Docs/singleton comparison#3529

Open
shabinfrancis wants to merge 2 commits into
iluwatar:masterfrom
shabinfrancis:docs/singleton-comparison
Open

Docs/singleton comparison#3529
shabinfrancis wants to merge 2 commits into
iluwatar:masterfrom
shabinfrancis:docs/singleton-comparison

Conversation

@shabinfrancis

Copy link
Copy Markdown

What does this PR do?

Adds a comparison table to the Singleton pattern documentation to help readers understand the differences between Eager Initialization and Thread-Safe Lazy Initialization implementations.

Changes

  • Added a comparison table for Singleton implementations.
  • Included key differences such as object creation, thread safety, synchronization requirements, memory usage, and performance considerations.
  • Improved readability for beginners learning the Singleton design pattern.

@github-actions

github-actions Bot commented Jun 20, 2026

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Review Summary

Commits Considered (2)
  • 690b4b8: docs: add comparison table for singleton implementations
  • 47a97fb: Add notification service example to Factory Method README
Files Processed (2)
  • factory-method/README.md (1 hunk)
  • singleton/README.md (1 hunk)
Actionable Comments (0)
Skipped Comments (2)
  • factory-method/README.md [34-36]

    readability: "Clarify Factory Method documentation example."

  • singleton/README.md [40-49]

    readability: "Add explanatory context to the singleton comparison table."

@codecov

codecov Bot commented Jun 20, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant