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

style: fix Bad Smells in spoon.support.reflect.declaration.CtElementImpl #4917

Merged
merged 2 commits into from
Sep 28, 2022

Conversation

MartinWitt
Copy link
Collaborator

@MartinWitt MartinWitt commented Sep 25, 2022

Repairing Code Style Issues

UnnecessaryToStringCall

The toString() method is not needed in cases the underlying method handles the conversion. Also calling toString() on a String is redundant. Removing them simplifies the code.

Changes:

  • Remove redudant toString() call in this.toString()
  • Remove redudant toString() call in o.toString()

@MartinWitt MartinWitt changed the title fix Bad Smells in spoon.support.reflect.declaration.CtElementImpl review: style: fix Bad Smells in spoon.support.reflect.declaration.CtElementImpl Sep 27, 2022
Copy link
Collaborator

@SirYwell SirYwell left a comment

Choose a reason for hiding this comment

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

LGTM. Will merge.

@SirYwell SirYwell changed the title review: style: fix Bad Smells in spoon.support.reflect.declaration.CtElementImpl style: fix Bad Smells in spoon.support.reflect.declaration.CtElementImpl Sep 28, 2022
@SirYwell SirYwell merged commit b47bbe3 into INRIA:master Sep 28, 2022
@SirYwell
Copy link
Collaborator

Thanks @MartinWitt

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.

2 participants