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 unnecessary toString() call #123

Merged

Conversation

MartinWitt
Copy link
Contributor

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.

Repairing Code Style Issues

  • UnnecessaryToStringCall (1)

- 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.
@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@4ed1f3d). Click here to learn what that means.
The diff coverage is 0.00%.

@@            Coverage Diff            @@
##             master     #123   +/-   ##
=========================================
  Coverage          ?   71.63%           
  Complexity        ?     1142           
=========================================
  Files             ?       63           
  Lines             ?     3113           
  Branches          ?      538           
=========================================
  Hits              ?     2230           
  Misses            ?      689           
  Partials          ?      194           
Impacted Files Coverage Δ
...g/apache/commons/validator/ValidatorResources.java 75.72% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@garydgregory garydgregory changed the title refactor: refactor bad smell UnnecessaryToStringCall Refactor Unnecessary toString() call Mar 12, 2023
@garydgregory garydgregory changed the title Refactor Unnecessary toString() call Refactor unnecessary toString() call Mar 12, 2023
@garydgregory garydgregory merged commit 3d8f2df into apache:master Mar 12, 2023
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.

3 participants