Use focused Lombok annotations and preserve generated API documentation

This commit is contained in:
2026-11-14 07:32:08 +01:00
parent 922ede8608
commit 5eb7d635d3
31 changed files with 233 additions and 890 deletions
@@ -3,13 +3,13 @@ package de.neitzel.gson.config;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.reflect.TypeToken;
import lombok.Builder;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.HashMap;
import java.util.Map;
import lombok.Builder;
import lombok.RequiredArgsConstructor;
/**
* Represents a configuration utility class that manages application settings and allows
@@ -20,6 +20,7 @@ import java.util.Map;
* the configuration on the filesystem and retrieve it as needed.
*/
@Builder(builderClassName = "ConfigurationBuilder")
@RequiredArgsConstructor
public class JsonConfiguration {
/**
* The name of the application.
@@ -66,21 +67,6 @@ public class JsonConfiguration {
*/
private final Gson gson;
/**
* Constructs a new {@code JsonConfiguration} instance with the specified parameters.
*
* @param appName the name of the application
* @param homeDir the home directory path for the application
* @param settings a map containing configuration settings as key-value pairs
* @param gson the Gson instance used for JSON serialization and deserialization
*/
public JsonConfiguration(String appName, String homeDir, Map<String, String> settings, Gson gson) {
this.appName = appName;
this.homeDir = homeDir;
this.settings = settings;
this.gson = gson;
}
/**
* Stores a key-value pair into the configuration settings.
* The value is serialized into a JSON string before being stored.