Skip to content

Commit ad40649

Browse files
Copilotnixel2007
andcommitted
Add directory check in WebsocketCommand and LanguageServerStartCommand for JDK 25 compatibility
Co-authored-by: nixel2007 <[email protected]>
1 parent 154b906 commit ad40649

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/github/_1c_syntax/bsl/languageserver/cli/LanguageServerStartCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public class LanguageServerStartCommand implements Callable<Integer> {
7575
public Integer call() {
7676

7777
var configurationFile = new File(configurationOption);
78-
if (configurationFile.exists()) {
78+
if (configurationFile.exists() && !configurationFile.isDirectory()) {
7979
configuration.update(configurationFile);
8080
}
8181

src/main/java/com/github/_1c_syntax/bsl/languageserver/cli/WebsocketCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public class WebsocketCommand implements Callable<Integer> {
8787

8888
public Integer call() {
8989
var configurationFile = new File(configurationOption);
90-
if (configurationFile.exists()) {
90+
if (configurationFile.exists() && !configurationFile.isDirectory()) {
9191
configuration.update(configurationFile);
9292
}
9393

0 commit comments

Comments
 (0)