Based on the JDK1.3 JavaDocs this would seem to be correct.
However, it has always seemed to me to be bad style to try to force values
to be interned in this way as you're working around the JVM--perhaps as some
kind of theoried performance improvement?
Think twice before relying on a function
Anyone know whether
public void setValue(String value) {
this.value = value.intern();
}
sets the this.value to a pooled String? I am trying to avoid a separate
call to intern() after setting the value. Thanks.
Michael McGrady
LEGAL NOTICE
This electronic mail transmission and any accompan
2 matches
Mail list logo