Benjamin Maurer (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5f1862a...
) *commented* on HHH-14137 (
https://hibernate.atlassian.net/browse/HHH-14137?atlOrigin=eyJpIjoiODZhOW...
)
Re: Empty String Check Performance Improvement (
https://hibernate.atlassian.net/browse/HHH-14137?atlOrigin=eyJpIjoiODZhOW...
)
I'm going to investigate the Spring code as well and probably will open an
additional PR for Spring Framework.
Ah, no need to bother. It was simply my oversight. The docs state it clearly:
*Note: If the object is typed to* String upfront, prefer hasLength(String)
or hasText(String) instead.
See
https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/spri...
And hasLenght is equivalent to your nonNullAndIsEmpty
(
https://hibernate.atlassian.net/browse/HHH-14137#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-14137#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100141- sha1:8f92423 )