At 07:29 24/11/00 -0800, you wrote: > >--- Peter Donald <[EMAIL PROTECTED]> wrote: >> Hi, >> >> Would it be possible for me to update Ant source to be more compliant >> with >> JLS. Essentially this involves removing public/static/final modifiers >> from >> methods/variables defined in interfaces. >> >> Example error is ... >> >> [javac] >> >C:/donaldp/jakarta-ant/src/main/org/apache/tools/tar/TarConstants.java:74:5: >> 74:5: Warning: The use of the "public" modifier in this context is >> redundant and strongly discouraged as a matter of style. > >Isn't jikes amazing??? > >+1, although I'm guilty of declaring interface methods as public out of >pure habit... I'll have to fix that (thanks for the .ant.properties hint). > >I thought any variables declared in interfaces *had* to be declared "static >final"?
Variables in interfaces are automatically public + final + static and the compiler knows this and thus does not need the possibly fallable programmers to tell them this ;) So if any specifiers are given they have to be public final static or else none ;) Cheers, Pete *------------------------------------------------------* | Despite your efforts to be a romantic hero, you will | | gradually evolve into a postmodern plot device. | *------------------------------------------------------*
