Skip to content

Commit

Permalink
(yegor256#1579) Qulice compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoss committed Apr 7, 2021
1 parent ec63222 commit 7259326
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/cactoos/text/SuffixOf.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public SuffixOf(final CharSequence text, final CharSequence boundary) {
public SuffixOf(final Text text, final CharSequence boundary) {
this(text, new TextOf(boundary));
}

/**
* Ctor.
* @param text Text representing the text value
Expand All @@ -67,7 +68,8 @@ public SuffixOf(final Text text, final Text boundary) {
(Text t) -> t.asString().indexOf(boundary.asString()) >= 0,
t -> new Sub(
t,
s -> s.indexOf(boundary.asString()) + new LengthOf(boundary).value().intValue()
s -> s.indexOf(boundary.asString())
+ new LengthOf(boundary).value().intValue()
),
t -> new TextOf("")
)
Expand Down

0 comments on commit 7259326

Please sign in to comment.