Skip to content

Commit 3d32497

Browse files
committed
🚑 Fix path separators
1 parent b2629cc commit 3d32497

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/spdx/storage/listedlicense/SpdxListedLicenseWebStore.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ public class SpdxListedLicenseWebStore extends SpdxListedLicenseModelStore {
7272
// See https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
7373
private final String cacheDir = ((System.getenv("XDG_CACHE_HOME") == null ||
7474
System.getenv("XDG_CACHE_HOME").trim() == "") ?
75-
System.getProperty("user.home") + "/.cache" :
75+
System.getProperty("user.home") + File.separator + ".cache" :
7676
System.getenv("XDG_CACHE_HOME")) +
77-
"/Spdx-Java-Library";
77+
File.separator + "Spdx-Java-Library";
7878

7979
private final String JAVA_PROPERTY_CACHE_ENABLED = "org.spdx.storage.listedlicense.enableCache";
8080
private final String JAVA_PROPERTY_CACHE_CHECK_INTERVAL_SECS = "org.spdx.storage.listedlicense.cacheCheckIntervalSecs";

0 commit comments

Comments
 (0)