Skip to content

Commit 8d33a9f

Browse files
committed
♻️ refactor: update codebase #2
1 parent 8c72d84 commit 8d33a9f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: plugin/src/main/groovy/org/bot4j/telegram/message/HtmlBuilder.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ public HtmlBuilder tag(String... tags) {
320320
if (Array4j.isEmpty(tags)) {
321321
return this;
322322
}
323-
Arrays.stream(tags).toList().forEach(e -> {
323+
Arrays.stream(tags).forEach(e -> {
324324
message.append(Ascii.Punctuation.NUMBER_SIGN)
325325
.append(e)
326326
.append(Ascii.Punctuation.SPACE);
@@ -333,7 +333,7 @@ public HtmlBuilder commercialAt(String... values) {
333333
if (Array4j.isEmpty(values)) {
334334
return this;
335335
}
336-
Arrays.stream(values).toList().forEach(e -> {
336+
Arrays.stream(values).forEach(e -> {
337337
message.append(Ascii.Punctuation.COMMERCIAL_AT)
338338
.append(e)
339339
.append(Ascii.Punctuation.SPACE);

Diff for: plugin/src/main/groovy/org/bot4j/telegram/message/MarkdownBuilder.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public MarkdownBuilder tag(String... tags) {
247247
if (Array4j.isEmpty(tags)) {
248248
return this;
249249
}
250-
Arrays.stream(tags).toList().forEach(e -> {
250+
Arrays.stream(tags).forEach(e -> {
251251
message.append(Ascii.Punctuation.NUMBER_SIGN)
252252
.append(e)
253253
.append(Ascii.Punctuation.SPACE);
@@ -260,7 +260,7 @@ public MarkdownBuilder commercialAt(String... values) {
260260
if (Array4j.isEmpty(values)) {
261261
return this;
262262
}
263-
Arrays.stream(values).toList().forEach(e -> {
263+
Arrays.stream(values).forEach(e -> {
264264
message.append(Ascii.Punctuation.COMMERCIAL_AT)
265265
.append(e)
266266
.append(Ascii.Punctuation.SPACE);

0 commit comments

Comments
 (0)