From a7ae846f88c2cc0e4f0f41f2664f6c807f702b4c Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Mon, 9 Dec 2024 13:17:27 +0100 Subject: [PATCH] refactor!: Make field private --- crates/stackable-operator/src/role_utils.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/stackable-operator/src/role_utils.rs b/crates/stackable-operator/src/role_utils.rs index ffbce666..1ac5d563 100644 --- a/crates/stackable-operator/src/role_utils.rs +++ b/crates/stackable-operator/src/role_utils.rs @@ -180,10 +180,16 @@ pub struct JavaCommonConfig { // TODO: Docs // Use [`JavaCommonConfig::effective_jvm_config`] to retrieve the effective JVM arguments! #[serde(default)] - pub jvm_argument_overrides: BTreeMap, + jvm_argument_overrides: BTreeMap, } impl JavaCommonConfig { + pub fn new(jvm_argument_overrides: BTreeMap) -> Self { + Self { + jvm_argument_overrides, + } + } + /// Returns all arguments that should be passed to the JVM. /// /// Please note that the values of the [`BTreeMap`] are [`Option`]. A value of [`None`]