Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Fixes missing eager/lazy initialization examples for Hacktoberfest co…#3332

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Th-Shivam wants to merge1 commit intoiluwatar:master
base:master
Choose a base branch
Loading
fromTh-Shivam:th-shivam

Conversation

Th-Shivam
Copy link

feat: Add eager and lazy initialization examples for Singleton pattern

  • Add EagerInitializedSingleton with class loading time initialization
  • Add LazyInitializedSingleton with synchronized lazy loading
  • Update App.java to demonstrate both approaches with clear logging
  • Update README.md with comprehensive documentation for all singleton types
  • Add corresponding unit tests for both implementations
  • All tests passing (21/21)

@github-actionsGitHub Actions
Copy link

Analyzing changes in this PR...

This might take a few minutes, please wait

📥 Commits

Analyzing changes from base (ede37bd) to latest commit (1cfbf30):

  • 1cfbf30: Fixes missing eager/lazy initialization examples for Hacktoberfest contributors
📁 Files being considered (6)

🔄 singleton/README.md(2 hunks)
🔄 singleton/src/main/java/com/iluwatar/singleton/App.java(1 hunk)
➕ singleton/src/main/java/com/iluwatar/singleton/EagerInitializedSingleton.java(1 hunk)
➕ singleton/src/main/java/com/iluwatar/singleton/LazyInitializedSingleton.java(1 hunk)
➕ singleton/src/test/java/com/iluwatar/singleton/EagerInitializedSingletonTest.java(1 hunk)
➕ singleton/src/test/java/com/iluwatar/singleton/LazyInitializedSingletonTest.java(1 hunk)


autogenerated bypresubmit.ai

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@Th-Shivam

[8]ページ先頭

©2009-2025 Movatter.jp