Cleaner 1.1 review

Download
by rbytes.net on

Cleaner is a Java beautifier that transforms ugly syntax into beautiful syntax

License: GPL (GNU General Public License)
File size: 580K
Developer: Jon Rafkind
0 stars award from rbytes.net

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