Releases: SpartanRefactoring/Main
Version 2.13.5
A few issues closed. Drop the jar file in dropins directory and run eclipse -clean to install.
Version 2.13.4
Bug fixes from the Final test of the Athenizer Yearly Project
Athenizer 2.13.1
Final release for Yearly Project 2017
SpartanizerJ1.2
Final release for Yearly Project 2017
Version 2.13.0
Merge branch 'mazter' of github.com:SpartanRefactoring/Main into mazter
SpartanizeJ L1.0
New Release!!!!
Advanced Leonidas-based tips:
-
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;
Advanced GUI :
- Enabling / Disabling of Spartanization
- Spartanization of an entire file
- Playground : try and spartanize you code!
- Modify enabled tips.
Version 2.10.1
Pre-release of version 2.10.1 .
Spartan Desktop Application
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
2.8 pre-release: Athenizer+Spartanizer
In this release we:
- Added more expanders (and changed their name to bloaters)
- Fixed buggy tippers
- Most importantly - added some useful expanders that use namespace (such as the ultimate expanding method calls bloater).
- Added useful menu buttons that can spartanize and athenize the whole project with a click of a button.
- Added a nicer GUI using colors highlighting when zooming in or out with the mouse scroller
- Added a test system for binding and renaming
Athenizer
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