Skip to content

Make inner class static to avoid code smell#3123

Merged
marcphilipp merged 2 commits intojunit-team:mainfrom
MartinWitt:laughing-train/Qodana/849971579
Jan 3, 2023
Merged

Make inner class static to avoid code smell#3123
marcphilipp merged 2 commits intojunit-team:mainfrom
MartinWitt:laughing-train/Qodana/849971579

Conversation

@MartinWitt
Copy link
Copy Markdown
Contributor

Repairing Code Style Issues

InnerClassMayBeStatic

Inner classes that do not reference their enclosing instances can be made static.
This prevents a common cause of memory leaks and uses less memory per instance of the class.

Repairing Code Style Issues

  • InnerClassMayBeStatic (1)

- InnerClassMayBeStatic
Inner classes that do not reference their enclosing instances can be made static.
This prevents a common cause of memory leaks and uses less memory per instance of the class.
@marcphilipp marcphilipp added this to the 5.9.2 milestone Jan 3, 2023
@marcphilipp marcphilipp changed the title refactor: refactor bad smell InnerClassMayBeStatic Make inner class static to avoid code smell Jan 3, 2023
@marcphilipp marcphilipp merged commit 7212e5a into junit-team:main Jan 3, 2023
@marcphilipp
Copy link
Copy Markdown
Member

@MartinWitt Thanks for the PR! 👍

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants