From f620c6685ac9b249f69970512cfc9c8e7a84a03b Mon Sep 17 00:00:00 2001
From: Armin Schrenk
Date: Wed, 14 Jan 2026 17:53:07 +0100
Subject: [PATCH] apply suggestions from AI review
---
.../launcher/AdminPropertiesSetter.java | 22 +++++++++----------
.../org/cryptomator/launcher/BufferedLog.java | 10 +++------
.../org/cryptomator/launcher/Cryptomator.java | 2 +-
3 files changed, 15 insertions(+), 19 deletions(-)
diff --git a/src/main/java/org/cryptomator/launcher/AdminPropertiesSetter.java b/src/main/java/org/cryptomator/launcher/AdminPropertiesSetter.java
index b70aa9689..30dcd241d 100644
--- a/src/main/java/org/cryptomator/launcher/AdminPropertiesSetter.java
+++ b/src/main/java/org/cryptomator/launcher/AdminPropertiesSetter.java
@@ -18,16 +18,16 @@ import java.util.Set;
/**
* Class to overwrite system properties with an external properties file
*
- * To overwrite system properties, the method {@link #adjustSystemProperties()} loads the JSON file {@value CONFIG_NAME} from an OS-dependent location and add all supported properties to the {@link System} properties.
- * The predefined location are:
- *
- *
Linux - {@value LINUX_DIR }
- *
macOS - {@value MAC_DIR }
- *
Windows - {@value WIN_DIR }
- *
+ * To overwrite system properties, the method {@link #adjustSystemProperties()} loads the JSON file {@value CONFIG_NAME} from an OS-dependent location and adds all whitelisted properties to the {@link System} properties.
+ * The predefined locations are:
+ *
+ *
Linux - {@value LINUX_DIR }
+ *
macOS - {@value MAC_DIR }
+ *
Windows - {@value WIN_DIR }
+ *
*
*
- * Supported properties for override are:
+ * The overridable properties are:
*
*
cryptomator.logDir
*
cryptomator.pluginDir
@@ -71,8 +71,8 @@ class AdminPropertiesSetter {
/**
* Adjusts the system properties by loading administrative properties from a predefined file location.
*
- * If the file exists and is a valid properties file, its content will overwrite existing system properties.
- * Only some properties are supported, see {@link AdminPropertiesSetter}
+ * If the file exists and is a valid JSON file, its content will overwrite existing system properties.
+ * Only some properties can be overridden, see {@link AdminPropertiesSetter}
*
* @return The adjusted system properties.
*/
@@ -100,7 +100,7 @@ class AdminPropertiesSetter {
}
} catch (NoSuchFileException _) {
//NO-OP
- log("No admin properties found at {}.", List.of(adminPropertiesPath));
+ log("No admin properties found at {}.", List.of(adminPropertiesPath));
} catch (IOException | RuntimeException e) {
log("Failed to read administrative properties from {}. Returning empty properties.", List.of(adminPropertiesPath, e));
}
diff --git a/src/main/java/org/cryptomator/launcher/BufferedLog.java b/src/main/java/org/cryptomator/launcher/BufferedLog.java
index 2e223b13b..0facf7734 100644
--- a/src/main/java/org/cryptomator/launcher/BufferedLog.java
+++ b/src/main/java/org/cryptomator/launcher/BufferedLog.java
@@ -14,15 +14,11 @@ class BufferedLog {
record Entry(String className, String message, List