Skip to content

Commit

Permalink
fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
looly committed Feb 28, 2022
1 parent ce62b5e commit 1fbed31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hutool-core/src/main/java/cn/hutool/core/text/StrJoiner.java
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public <T> StrJoiner append(Iterator<T> iterator, Function<T, ? extends CharSequ

@Override
public StrJoiner append(CharSequence csq) {
return append(csq, 0, csq.length());
return append(csq, 0, StrUtil.length(csq));
}

@Override
Expand All @@ -303,6 +303,8 @@ public StrJoiner append(CharSequence csq, int startInclude, int endExclude) {
break;
case NULL_STRING:
csq = StrUtil.NULL;
endExclude = StrUtil.NULL.length();
break;
}
}
try {
Expand Down

0 comments on commit 1fbed31

Please sign in to comment.