Skip to content

Commit

Permalink
(yegor256#1462) Use text.Mapped
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoss committed Oct 16, 2020
1 parent a5ebafd commit 3707553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/cactoos/text/Lowered.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ public Lowered(final Text text) {
* `text` package (e.g., `Upper`, `Trimmed`).
*/
public Lowered(final Text text, final Locale locale) {
super(new TextOf(() -> text.asString().toLowerCase(locale)));
super(new Mapped(str -> str.toLowerCase(locale), text));
}
}

0 comments on commit 3707553

Please sign in to comment.