Cleaner 1.1 review
DownloadCleaner is a Java beautifier that transforms ugly syntax into beautiful syntax
|
|
Cleaner is a Java beautifier that transforms ugly syntax into beautiful syntax. The Java code syntax is parsed using ANTLR and then printed to standard output.
Source is included.
Something like this:
public void foo(String bar)
{
for(int x=0; x < 9; x++ )
{
System.out.println ("X = " + x);
}
}
Will become
public void foo( String bar ){
for ( int x = 0; x < 9; x++ ){
System.out.println( "X = " + x );
}
}
Compile:
$ ant
Run:
$ java -classpath cleaner.jar:lib/antlr.jar cleaner.Cleaner < some-file >
Cleaner 1.1 keywords