Skip to content

Commit 3126d32

Browse files
committed
fix: use arrays syntax of supported java versions
1 parent b998d6a commit 3126d32

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bolt-socket-mode/src/test/java/samples/AssistantSimpleApp.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
import com.slack.api.model.event.AppMentionEvent;
99
import com.slack.api.model.event.MessageEvent;
1010

11+
import java.util.Arrays;
1112
import java.util.Collections;
12-
import java.util.List;
1313

1414
public class AssistantSimpleApp {
1515

@@ -58,7 +58,7 @@ public static void main(String[] args) throws Exception {
5858
try {
5959
ctx.setStatus("is downloading the files...");
6060
Thread.sleep(500L);
61-
ctx.setStatus("is analyzing the files...", List.of("Reading bytes...", "Confirming hashes..."));
61+
ctx.setStatus("is analyzing the files...", Arrays.asList("Reading bytes...", "Confirming hashes..."));
6262
Thread.sleep(500L);
6363
ctx.say("Your files do not have any issues!");
6464
} catch (Exception e) {

docs/english/guides/ai-apps.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ import com.slack.api.model.assistant.SuggestedPrompt;
216216
import com.slack.api.model.event.AppMentionEvent;
217217
import com.slack.api.model.event.MessageEvent;
218218

219+
import java.util.Arrays;
219220
import java.util.Collections;
220-
import java.util.List;
221221

222222
public class AssistantSimpleApp {
223223

@@ -266,7 +266,7 @@ public class AssistantSimpleApp {
266266
try {
267267
ctx.setStatus("is downloading the files...");
268268
Thread.sleep(500L);
269-
ctx.setStatus("is analyzing the files...", List.of("Reading bytes...", "Confirming hashes..."));
269+
ctx.setStatus("is analyzing the files...", Arrays.asList("Reading bytes...", "Confirming hashes..."));
270270
Thread.sleep(500L);
271271
ctx.say("Your files do not have any issues!");
272272
} catch (Exception e) {

0 commit comments

Comments
 (0)