ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@apache.org>
Subject Stronger JLS Adherence
Date Sat, 25 Nov 2000 01:47:34 GMT
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.      |
*------------------------------------------------------*


Mime
View raw message