Skip to content

Commit

Permalink
Renaming Variable Names
Browse files Browse the repository at this point in the history
  • Loading branch information
mehyil committed Jun 2, 2017
1 parent 118b4f9 commit 3e4bedd
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/main/java/org/cactoos/text/ReplacedText.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,29 +43,29 @@ public final class ReplacedText implements Text {
/**
* The old char.
*/
private final String oldchar;
private final String needle;

/**
* The new char.
*/
private final String newchar;
private final String replacement;

/**
* Ctor.
* @param text The text
* @param oldchar The old char
* @param newchar The new char
* @param find The find one
* @param replace The replace one
*/
public ReplacedText(final Text text, final String oldchar, final String
newchar) {
public ReplacedText(final Text text, final String find, final String
replace) {
this.origin = text;
this.oldchar = oldchar;
this.newchar = newchar;
this.needle = find;
this.replacement = replace;
}

@Override
public String asString() throws IOException {
return this.origin.asString().replace(this.oldchar, this.newchar);
return this.origin.asString().replace(this.needle, this.replacement);
}
}

0 comments on commit 3e4bedd

Please sign in to comment.