The @Override annotation is not a part of the method signature.
It is just information to the compiler.
It's more like:
@Override
public boolean equals(Object obj)
{
...
}
Take a look at:
http://java.sun.com/docs/books/tutorial/java/javaOO/annotations.html
Regards
> The @Override annotation is not a part of the method signature.
> It is just information to the compiler.
[quoted text clipped - 5 lines]
> ...
> }
For @Override only, some people will write that as:
@Override public boolean equals(Object obj)
Not sure how widespread that is. We still haven't got everyone to put
opening braces at end of line.
> http://java.sun.com/docs/books/tutorial/java/javaOO/annotations.html
And the JavaDocs for @Override itself. Annotations are hidden right at
the bottom of the type lists for packages (far bottom left). Note, Java
is case sensitive, so always a capital O.
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Override.html
Tom Hawtin

Signature
Unemployed English Java programmer
http://jroller.com/page/tackline/