Skip to content

Instantly share code, notes, and snippets.

@bsideup
Last active August 29, 2015 14:16
Show Gist options
  • Save bsideup/d55fd34991639e93a95d to your computer and use it in GitHub Desktop.
Save bsideup/d55fd34991639e93a95d to your computer and use it in GitHub Desktop.

Revisions

  1. bsideup revised this gist Feb 25, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions refactor.groovy
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    given:
    Integer a;
    Integer b;
    Integer a
    Integer b
    match:
    a.equals(b)
    replaceWith:
  2. bsideup created this gist Feb 25, 2015.
    7 changes: 7 additions & 0 deletions refactor.groovy
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    given:
    Integer a;
    Integer b;
    match:
    a.equals(b)
    replaceWith:
    a == b