()
| 81 | } |
| 82 | |
| 83 | public static TCodeConfig load() { |
| 84 | if (Files.exists(CONFIG_FILE)) { |
| 85 | try { |
| 86 | return mapper.readValue(CONFIG_FILE.toFile(), TCodeConfig.class); |
| 87 | } catch (IOException e) { |
| 88 | System.err.println("⚠️ 配置文件读取失败,使用默认配置: " + e.getMessage()); |
| 89 | } |
| 90 | } |
| 91 | return new TCodeConfig(); |
| 92 | } |
| 93 | |
| 94 | public void save() { |
| 95 | try { |
no test coverage detected