You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
toString method may return null
This toString method seems to return null in some circumstances. A liberal reading of the spec could be interpreted as allowing this, but it is probably a bad idea and could cause other code to break. Return the empty string or some other appropriate string rather than null.
Since at least 2.3.25.
Consider:
returnobj == null ? "null" : "{" + obj + "}";
The text was updated successfully, but these errors were encountered:
Would returning
"null"
, rather thannull
, be more idiomatic?grizzly/modules/grizzly/src/main/java/org/glassfish/grizzly/utils/Holder.java
Line 70 in a2ce777
toString method may return null
This toString method seems to return null in some circumstances. A liberal reading of the spec could be interpreted as allowing this, but it is probably a bad idea and could cause other code to break. Return the empty string or some other appropriate string rather than null.
Since at least 2.3.25.
Consider:
The text was updated successfully, but these errors were encountered: