We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edc9b91 commit 7d0d589Copy full SHA for 7d0d589
src/main/java/io/github/doocs/im/ClientConfiguration.java
@@ -3,10 +3,7 @@
3
import io.github.doocs.im.util.VersionInfoUtil;
4
import okhttp3.ConnectionPool;
5
6
-import java.util.Collections;
7
-import java.util.HashSet;
8
-import java.util.Objects;
9
-import java.util.Set;
+import java.util.*;
10
11
/**
12
* 客户端配置类
@@ -44,11 +41,9 @@ public class ClientConfiguration {
44
41
* 默认重试错误码
45
42
*/
46
43
public static final Set<Integer> DEFAULT_BUSINESS_RETRY_CODES =
47
- Collections.unmodifiableSet(new HashSet<Integer>() {{
48
- add(10002);
49
- add(20004);
50
- add(20005);
51
- }});
+ Collections.unmodifiableSet(
+ new HashSet<>(Arrays.asList(10002, 20004, 20005))
+ );
52
53
54
* 默认超时时间(毫秒)
0 commit comments