classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Classpath Swing development?


From: Dalibor Topic
Subject: Re: Classpath Swing development?
Date: Tue, 25 May 2004 09:42:43 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b) Gecko/20040421

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]