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

Refactor Layered Architecture #2976

Closed
iluwatar opened this issue Jun 1, 2024 · 15 comments
Closed

Refactor Layered Architecture #2976

iluwatar opened this issue Jun 1, 2024 · 15 comments

Comments

@iluwatar
Copy link
Owner

iluwatar commented Jun 1, 2024

Description

Layered Architecture example has some code smells.

CakeInfo - 'Optional' used as type for field 'id'
CakeLayerInfo - 'Optional' used as type for field 'id'
CakeToppingInfo - 'Optional' used as type for field 'id'

Acceptance Criteria

  • Code smells fixed
@ankurnotwarikoo
Copy link

Willing to work on this.
However in my sts I am unable to see the code smells as such. Followed the instructions mentioned here :-
https://github.com/iluwatar/java-design-patterns/wiki/12.-IDE-instructions

image
Could only see identation issues as such.
Please let me know how do I proceed to resolve this.
P.S. - Interested to contribute to this repo !

@iluwatar
Copy link
Owner Author

iluwatar commented Jun 4, 2024

Don't know about other IDEs, but in IntelliJ IDEA you can reproduce the warnings by using command 'Analyze - Inspect Code' on the layered-architecture module.

@ankurnotwarikoo
Copy link

Could you assign this issue to me? This is my first time contributing, so I also need some guidance on how to commit and raise a pull request. Thank you!

@iluwatar
Copy link
Owner Author

iluwatar commented Jun 4, 2024

Sure @ankurnotwarikoo Here are a couple of good starting points to get started with Github and this project:

@ankurnotwarikoo
Copy link

@iluwatar - I am done with the code fixes. However, format the code using checkstlye plugin in Intellij and hence unable to surpass the validation of code.
Do let me know if there's some checkstyle.xml on which defines the basis of formatting of file.

@iluwatar
Copy link
Owner Author

iluwatar commented Jun 6, 2024

Checkstyle is configured here: https://github.com/iluwatar/java-design-patterns/blob/master/pom.xml#L334-L356

It uses built-in Google Checks. We have added some of our own rule suppressions.

IDE instructions have some hints on how to work with Checkstyle https://github.com/iluwatar/java-design-patterns/wiki/12.-IDE-instructions

@iluwatar
Copy link
Owner Author

iluwatar commented Jun 6, 2024

Noticed that we have a partly duplicate issue #2936

Copy link

stale bot commented Aug 5, 2024

This issue has been automatically marked as stale because it has not had recent activity. The issue will be unassigned if no further activity occurs. Thank you for your contributions.

@stale stale bot added the status: stale issues and pull requests that have not had recent interaction label Aug 5, 2024
@iluwatar iluwatar added info: help wanted and removed status: stale issues and pull requests that have not had recent interaction labels Sep 11, 2024
@abhishek-singh0710
Copy link

Can this issue be assigned to me?

@abhishek-singh0710
Copy link

Also I'm sorry if this seems like a poor question but are we only concerned with the optional type given to the ids of those three classes and none other?

@PALASH2201
Copy link

PALASH2201 commented Oct 1, 2024

I checked the concerned code files, I guess the code smells are fixed. The optional fields have been changed.

@abhishek-singh0710
Copy link

Ok. Thanks for letting me know.

@PALASH2201
Copy link

Yea, no issues

@pujakarakoti07
Copy link

pujakarakoti07 commented Oct 3, 2024

Could you please assign this issue to me?

@iluwatar
Copy link
Owner Author

Fixed in #2988

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

No branches or pull requests

5 participants