Skip to content

Commit

Permalink
chore: use IJ SystemInfo
Browse files Browse the repository at this point in the history
Signed-off-by: azerr <azerr@redhat.com>
  • Loading branch information
angelozerr authored and fbricon committed Dec 15, 2023
1 parent 4335fee commit 0d9d3d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 94 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
package com.redhat.devtools.lsp4ij.server;

import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.SystemInfo;
import com.redhat.devtools.lsp4ij.settings.UserDefinedLanguageServerSettings;

import java.io.File;
Expand Down Expand Up @@ -88,6 +89,6 @@ public List<String> create() {

private static String computeJavaPath() {
return new File(System.getProperty("java.home"),
"bin/java" + (OS.current() == OS.WINDOWS ? ".exe" : "")).getAbsolutePath();
"bin/java" + (SystemInfo.isWindows ? ".exe" : "")).getAbsolutePath();
}
}
93 changes: 0 additions & 93 deletions src/main/java/com/redhat/devtools/lsp4ij/server/OS.java

This file was deleted.

0 comments on commit 0d9d3d1

Please sign in to comment.