On Tue, 9 Jul 2002 03:50:05 +0100, "Carlos Costa e Silva" <[EMAIL PROTECTED]> wrote:

>And, just to refresh your memory (because it was already requested):
>
>Inspection that shows strings being compared by "==" instead of by equals:
>
>if (aString == anotherString) {    // should be
>aString.equals(anotherString)
>}

Comparing with == is perfectly valid if you are using String.intern() or a Factory.

>And thinking again, this can be extended to other values: Date's, Number's,
>...?

This is also valid if you are using a Factory.

Neil

_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-features

Reply via email to