Skip to content

Commit 0579f01

Browse files
author
xqs
committed
strutil 的next问题
1 parent 0c4597d commit 0579f01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/devil/utils/StrUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static <T> String join(Collection<T> src, String delimer) {
2323
while (it.hasNext()) {
2424
T next = it.next();
2525
if (next != null) {
26-
sb.append(delimer).append(it.next().toString());
26+
sb.append(delimer).append(next.toString());
2727
}
2828
}
2929
if (sb.length() > 0) {

0 commit comments

Comments
 (0)