Eclipse plugin that performs automatic refactoring of Java source code, making it shorter, more idiomatic and more readable
A few issues closed. Drop the jar file in dropins directory and run eclipse -clean to install.
Bug fixes from the Final test of the Athenizer Yearly Project
Final release for Yearly Project 2017
Final release for Yearly Project 2017
Remove curly braces from if statement:
if (x > 0) { y++; } => if (x>0) y++;
Remove curly braces from while statement:
while (!s.isEmpty()) { write(s.pop());} => while (!s.isEmpty()) write(s.pop());
Remove double negation:
if(!(!(x > 9))) { ... } => if (x > 9) { ... }
Fluent Setter :
class X { private int y; public void setY(int y) { this.y = y; }} => class X { private int y; public X setY(int y) { this.y = y; return this; }}
Advance by one :
x += 1; => x++;
Reorder Literal Equals :
String s = ... ; s.equals("$$$") => "$$$".equals(s);
Collapse an if clause with throws :
if (x > 0) throw e1; throw e2; => throw x > 0 ? e1 : e2;
Pre-release of version 2.10.1 .
Eclipse independent desktop application (currently for Windows OS only).
Instruction: download spartan.zip
and extract it into some folder.
Usage: spartan.exe [-consoleLog] {files to spartanize}
Help: spartan.exe -consoleLog
In this release we:
In addition to the Spartanizer, in this release we also have a working version of the athenizer. To start the athenizer, just press ctrl+alt+D. Then - when you want to spartanize your code, press ctrl while scrolling down with your mouse. When you want to Athenize your code (expand it) - press ctrl while scrolling up with your mouse