Skip to content

Use String.isEmpty() instead of String.equals("")#24052

Merged
jhoeller merged 1 commit into
spring-projects:masterfrom
stsypanov:isEmpty
Nov 21, 2019
Merged

Use String.isEmpty() instead of String.equals("")#24052
jhoeller merged 1 commit into
spring-projects:masterfrom
stsypanov:isEmpty

Conversation

@stsypanov

Copy link
Copy Markdown
Contributor

There are certains cases when we are sure that String is not null, so instead of using equals("") we can call String.isEmpty() making core more readable.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Nov 21, 2019
@jhoeller jhoeller merged commit 1f3b595 into spring-projects:master Nov 21, 2019
@jhoeller jhoeller self-assigned this Nov 21, 2019
@jhoeller jhoeller added in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Nov 21, 2019
@jhoeller jhoeller added this to the 5.2.2 milestone Nov 21, 2019
@stsypanov stsypanov deleted the isEmpty branch November 22, 2019 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants