You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Peter Donald <do...@apache.org> on 2000/11/25 02:47:34 UTC

Stronger JLS Adherence

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.

Removing them is best because leaving them in often makes programmers
assume that it is possible to have different specifiers.

Other things I would like to remove are Empty Declarations. ie

class A 
{
}; //<-- ; should be removed

If you want to see the warnings get jikes compiler and create a property
file .ant.properties in basedirectory that has the following in it.

build.compiler=jikes
build.compiler.warnings=true
build.compiler.pedantic=true
build.compiler.depend=true

Cheers,

Pete

*------------------------------------------------------*
| Despite your efforts to be a romantic hero, you will |
| gradually evolve into a postmodern plot device.      |
*------------------------------------------------------*