Jochen Hoenicke ([EMAIL PROTECTED]) wrote:
> public abstract interface xxx 
> 
> Each interface is implicitly abstract.  The java language
> specification (Version 1.0) even says (9.1.2.1):
> 
>   Every interface is implicitly abstract. This modifier is obsolete
>   and should not be used in new Java programs.
> 
> Similar holds for abstract methods (9.4) and public static final
> fields (9.3) in an interface:

I personally put the abstract modifier in.  I don't like to rely
on "implicit" declarations.  (The only time I like to take advantage
of that is for variable initial values, but the damn compiler
complains about it!). 
 
> Since jikes even warns about the abstract modifier of an interface, I
> would like to remove at least these.  So which modifiers do you think
> (if any at all) should be removed?

I'd say Jikes is being overly aggressive about spewing out warnings.
 
>  Should the abstract modifier of the interfaces should be removed?
>  (I think so, jikes complains about them.)
> 
>  Should the abstract modifiers of interface _methods_ be removed? 
>  (I would prefer this.)

I don't care about removing these, but it is not a priority for me
to go back and change old code for cosmetic purposes right now.
 
>  Should the public modifiers of interface fields and methods in interfaces
>  be removed? (I think not, it is better to see that they are public)

I agree with this.  public should stay.

>  Should the static and final modifiers of interface fields be removed?
>  (I don't think so.)
 
I agree with this too.

-- 
Aaron M. Renn ([EMAIL PROTECTED]) http://www.urbanophile.com/arenn/

Reply via email to