Skip to content

Refactor with String#isEmpty() #1335

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

Closed
wants to merge 1 commit into from
Closed

Conversation

stonio
Copy link
Contributor

@stonio stonio commented Feb 21, 2017

Polish few classes with .isEmpty() instead of .length() == 0.

@snicoll
Copy link
Member

snicoll commented Feb 21, 2017

@stonio thanks for the PR, we prefer a single commit rather than small atomic commits. Can you please squash all that and push force your branch?

@stonio
Copy link
Contributor Author

stonio commented Feb 22, 2017

@snicoll All my commits squashed into a single commit.
May be backported to 4.3.x branch.

Copy link

@lqjack lqjack left a comment

Choose a reason for hiding this comment

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

does the String (empty()) better then String (.length())?

@snicoll snicoll self-assigned this Feb 22, 2017
@snicoll snicoll closed this in 7d062df Feb 22, 2017
snicoll added a commit that referenced this pull request Feb 22, 2017
* pr/1335:
  Use String#isEmpty()
@snicoll
Copy link
Member

snicoll commented Feb 22, 2017

Thanks, we'll backport it to 4.3.x later today.

@stonio stonio deleted the patch-4 branch February 22, 2017 11:25
jhoeller pushed a commit that referenced this pull request Feb 22, 2017
Closes gh-1335
(cherry picked from commit 7d062df)
XLWW pushed a commit to XLWW/spring-framework that referenced this pull request Apr 29, 2018
Closes spring-projectsgh-1335
(cherry picked from commit 7d062df)
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