Closed ghost closed 11 months ago
@DaveJarvis Would you consider "{}" instead as the Holder object itself does exist, but rather it has nothing to hold onto?
@DaveJarvis Can you create a PR for this?
@DaveJarvis Can you create a PR for this?
No, I'm moving off of GitHub soon.
Would returning
"null"
, rather thannull
, be more idiomatic?https://github.com/eclipse-ee4j/grizzly/blob/a2ce7775658e11fbccbb9acd32e2daf2b0799f45/modules/grizzly/src/main/java/org/glassfish/grizzly/utils/Holder.java#L70
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: