RE: [OT] intern() and setting values.

2004-05-10 Thread Hibbs, David
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

[OT] intern() and setting values.

2004-05-10 Thread Michael McGrady
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