There isn't anything wrong with using "this". I believe I remember
reading that the convention for static final members was that you were
supposed to refer to them explicitly with the class name, e.g.:

 i = MyClass.STATIC_MEMBER

vs.

 i = this.STATIC_MEMBER
 (or)
 i = STATIC_MEMBER

IIRC, the reason for this was that you want to have the code reader know
that member is associated with the Class (with a capital C) and not the
object instance, since you could in theory move the constants out of
your class, and everywhere you've referred to them with this. or no
prefix might break.

I agree that you should be able to enable it showing up in
auto-complete, but I think that the way it works makes sense. Maybe
instead it could show up with some notation in the auto-complete, so
that you know it's a constant value (I believe this was on the Ariadna
feature list).

Peter

"Yates, Colin" wrote:
> I personally do not think there is anything wrong with using the "this"
> keyword.

_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to