Thomas Zander wrote:

On the hacking guide point 6.1, for the following item;

Don't use redundant modifiers or other redundant constructs. Here is some sample code that shows various redundant items in comments: /*import java.lang.Integer;*/
/*abstract*/ interface I {
/*public abstract*/ void m();
/*public static final*/ int i = 1;
/*public static*/ class Inner {}
}
final class C /*extends Object*/ {
/*final*/ void m() {}
}



The one who wrote this obviously has no idea that public void bla()
is very different from
void bla()
and
class x{ int i=1; }
is very different from:
class x{ public static final int i=1; }
an inner class is also not static by default.

I is an interface. :)

cheers,
dalibor topic


_______________________________________________ Classpath mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/classpath

Reply via email to