Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#5: Improve access method for CommandletManager #129

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

hohwille
Copy link
Member

@hohwille hohwille commented Nov 7, 2023

Related to #5
In our daily we discovered a confusion with CommandletManagerImpl.of(null) and had a general discussion about static of vs. get methods:

  • static method named of shall be like a "Constructor" to create a new instance of something.
  • static method named get shall be some kind of singleton access to get something that is already there and typically return the same instance when called multiple times.

I have refactored our code and properly applied this also for CommandletManagerImpl and also improved the JavaDoc accordingly so things should be more transparent now.

@hohwille hohwille merged commit cbe3008 into devonfw:main Nov 7, 2023
@hohwille hohwille added this to the release:2024.01.001 milestone Nov 7, 2023
@hohwille hohwille added the enhancement New feature or request label Nov 7, 2023
@hohwille hohwille linked an issue Nov 7, 2023 that may be closed by this pull request
moritzLanger added a commit to moritzLanger/IDEasy that referenced this pull request Feb 22, 2024
moritzLanger added a commit to moritzLanger/IDEasy that referenced this pull request Mar 4, 2024
@hohwille hohwille added story-review marks PRs that will be presented in the sprint-review reviewed Marks PRs that have been presented in the sprint-review meeting or that do not need to be presented. and removed story-review marks PRs that will be presented in the sprint-review labels May 3, 2024
@hohwille hohwille self-assigned this May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request reviewed Marks PRs that have been presented in the sprint-review meeting or that do not need to be presented.
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Migrate devonfw-ide from bash to IDEasy with GraalVM
1 participant