SpartanRefactoring Main Versions Save

Eclipse plugin that performs automatic refactoring of Java source code, making it shorter, more idiomatic and more readable

2.13.5

6 years ago

A few issues closed. Drop the jar file in dropins directory and run eclipse -clean to install.

2.13.4

6 years ago

Bug fixes from the Final test of the Athenizer Yearly Project

2.13.1

6 years ago

Final release for Yearly Project 2017

SpartanizerJ1.2

6 years ago

Final release for Yearly Project 2017

2.13.0

6 years ago

l1.0

6 years ago

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.

2.10.1

7 years ago

Pre-release of version 2.10.1 .

1.0.0.0

7 years ago

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

v2.8.0-beta

7 years ago

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

2.7.9-beta

7 years ago

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