|
17 | 17 |
|
18 | 18 | import java.nio.file.Files;
|
19 | 19 | import java.nio.file.Path;
|
20 |
| -import java.util.ArrayList; |
21 |
| -import java.util.Collections; |
22 | 20 | import java.util.List;
|
23 | 21 | import java.util.Map;
|
24 | 22 | import java.util.Objects;
|
@@ -53,17 +51,15 @@ public class KtLintCompat0Dot48Dot0Adapter implements KtLintCompatAdapter {
|
53 | 51 | private static final List<EditorConfigProperty<?>> DEFAULT_EDITOR_CONFIG_PROPERTIES;
|
54 | 52 |
|
55 | 53 | static {
|
56 |
| - List<EditorConfigProperty<?>> list = new ArrayList<>(); |
57 |
| - list.add(CodeStyleEditorConfigPropertyKt.getCODE_STYLE_PROPERTY()); |
58 | 54 | //noinspection deprecation
|
59 |
| - list.add(DisabledRulesEditorConfigPropertyKt.getDISABLED_RULES_PROPERTY()); |
60 |
| - //noinspection KotlinInternalInJava,deprecation |
61 |
| - list.add(DisabledRulesEditorConfigPropertyKt.getKTLINT_DISABLED_RULES_PROPERTY()); |
62 |
| - list.add(IndentStyleEditorConfigPropertyKt.getINDENT_STYLE_PROPERTY()); |
63 |
| - list.add(IndentSizeEditorConfigPropertyKt.getINDENT_SIZE_PROPERTY()); |
64 |
| - list.add(InsertFinalNewLineEditorConfigPropertyKt.getINSERT_FINAL_NEWLINE_PROPERTY()); |
65 |
| - list.add(MaxLineLengthEditorConfigPropertyKt.getMAX_LINE_LENGTH_PROPERTY()); |
66 |
| - DEFAULT_EDITOR_CONFIG_PROPERTIES = Collections.unmodifiableList(list); |
| 55 | + DEFAULT_EDITOR_CONFIG_PROPERTIES = List.of( |
| 56 | + CodeStyleEditorConfigPropertyKt.getCODE_STYLE_PROPERTY(), |
| 57 | + DisabledRulesEditorConfigPropertyKt.getDISABLED_RULES_PROPERTY(), |
| 58 | + DisabledRulesEditorConfigPropertyKt.getKTLINT_DISABLED_RULES_PROPERTY(), |
| 59 | + IndentStyleEditorConfigPropertyKt.getINDENT_STYLE_PROPERTY(), |
| 60 | + IndentSizeEditorConfigPropertyKt.getINDENT_SIZE_PROPERTY(), |
| 61 | + InsertFinalNewLineEditorConfigPropertyKt.getINSERT_FINAL_NEWLINE_PROPERTY(), |
| 62 | + MaxLineLengthEditorConfigPropertyKt.getMAX_LINE_LENGTH_PROPERTY()); |
67 | 63 | }
|
68 | 64 |
|
69 | 65 | static class FormatterCallback implements Function2<LintError, Boolean, Unit> {
|
|
0 commit comments