Hi all,
Chcel by som sa spytat, ci sa ma uvadzat anotacia @Override nad
implementaciou metody interfaceu?
Ide o Javu 1.6
Priklad:
public interface NejakyInterface {
public void nejakaMetoda();
}
public class NejakyInterfaceImpl implements NejakyInterface {
@Override // Anotacia ano ci nie?
public void nejakaMetoda() {
// nejaky kod
}
}
Pytam sa preto, bo NetBeans 6.8 mi davaju warning, ze by tam anotacia
mala byt, ale Eclipse Galileo mi tam potom hadzu chybu a odporucaju
anotaciu vymazat.
Michal
______________________________________________________
The information contained in this communication is intended solely for the use
of the individual or entity to whom it is addressed and others authorized to
receive it. It may contain confidential or legally privileged information. If
you are not the intended recipient you are hereby notified that any disclosure,
copying, distribution or taking any action in reliance on the contents of this
information is strictly prohibited and may be unlawful. If you have received
this communication in error, please notify us immediately by forwarding this
email to [email protected] and then delete it from your system.
Ness Technologies is neither liable for the proper and complete transmission of
the information contained in this communication nor for any delay in its
receipt.