This is the mail archive of the
mailing list for the Java project.
Re: FYI: Patch: fixing warnings all over
- From: Michael Koch <konqueror at gmx dot de>
- To: Ranjit Mathew <rmathew at hotmail dot com>
- Cc: java-patches at gcc dot gnu dot org, commit-classpath at gnu dot org
- Date: Fri, 9 Jan 2004 10:45:57 +0100
- Subject: Re: FYI: Patch: fixing warnings all over
- References: <firstname.lastname@example.org> <3FFE7523.email@example.com>
On Fri, Jan 09, 2004 at 03:02:19PM +0530, Ranjit Mathew wrote:
> Michael Koch wrote:
> > - static final int WIND_EVEN_ODD = 0;
> > + int WIND_EVEN_ODD = 0;
> What's the rationale here (and at similar changes)?
> > - public boolean isLoggable(LogRecord record);
> > + boolean isLoggable(LogRecord record);
> ...and here?
> Sorry for being thick.
The rationale is that in interfaces all variables are "public static
final" and all methods are "public" by design. Our Coding Style says
that we avoid redundant modifiers because they are already there