This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-text.git
The following commit(s) were added to refs/heads/master by this push:
new f0315aa Add comments.
f0315aa is described below
commit f0315aa36495f6daa5b2943f89041de0d39f4549
Author: Gary Gregory <[email protected]>
AuthorDate: Wed Jul 1 17:26:42 2020 -0400
Add comments.
---
src/main/java/org/apache/commons/text/lookup/AbstractStringLookup.java | 2 ++
1 file changed, 2 insertions(+)
diff --git
a/src/main/java/org/apache/commons/text/lookup/AbstractStringLookup.java
b/src/main/java/org/apache/commons/text/lookup/AbstractStringLookup.java
index 00e80f2..ec78a1a 100644
--- a/src/main/java/org/apache/commons/text/lookup/AbstractStringLookup.java
+++ b/src/main/java/org/apache/commons/text/lookup/AbstractStringLookup.java
@@ -49,6 +49,7 @@ abstract class AbstractStringLookup implements StringLookup {
* @return a new string.
*/
protected String substringAfter(final String value, final char ch) {
+ // TODO Reuse Commons Lang 3.11 StringUtils.substringAfter(String, int)
final int indexOf = value.indexOf(ch);
return indexOf > -1 ? value.substring(indexOf + 1) : EMPTY;
}
@@ -61,6 +62,7 @@ abstract class AbstractStringLookup implements StringLookup {
* @return a new string.
*/
protected String substringAfterLast(final String value, final char ch) {
+ // TODO Reuse Commons Lang 3.11 StringUtils.substringAfterLast(String,
int)
final int indexOf = value.lastIndexOf(ch);
return indexOf > -1 ? value.substring(indexOf + 1) : EMPTY;
}