From 5bd959ca3c8e781f6e04520de8303bc1ecb0c2c9 Mon Sep 17 00:00:00 2001 From: Patrick Duin Date: Mon, 27 May 2024 11:37:17 +0200 Subject: [PATCH] Update AbstractMetaStore.java using new HashMap so the generated Yaml doesn't generate an anchor (reference &id001) --- .../hotels/bdp/waggledance/api/model/AbstractMetaStore.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/waggle-dance-api/src/main/java/com/hotels/bdp/waggledance/api/model/AbstractMetaStore.java b/waggle-dance-api/src/main/java/com/hotels/bdp/waggledance/api/model/AbstractMetaStore.java index 010433a5..c78b6334 100644 --- a/waggle-dance-api/src/main/java/com/hotels/bdp/waggledance/api/model/AbstractMetaStore.java +++ b/waggle-dance-api/src/main/java/com/hotels/bdp/waggledance/api/model/AbstractMetaStore.java @@ -51,15 +51,15 @@ public abstract class AbstractMetaStore { private List writableDatabaseWhitelist; private List mappedDatabases; private @Valid List mappedTables; - private transient Map databaseNameMapping = Collections.emptyMap(); + private Map databaseNameMapping = new HashMap<>(); private @NotBlank String name; private @NotBlank String remoteMetaStoreUris; private @Valid MetastoreTunnel metastoreTunnel; private @NotNull AccessControlType accessControlType = AccessControlType.READ_ONLY; private transient @JsonProperty @NotNull MetaStoreStatus status = MetaStoreStatus.UNKNOWN; private long latency = 0; - private @JsonIgnore HashBiMap databaseNameBiMapping = HashBiMap.create(); - private Map configurationProperties = Collections.emptyMap(); + private transient @JsonIgnore HashBiMap databaseNameBiMapping = HashBiMap.create(); + private Map configurationProperties = new HashMap<>(); public AbstractMetaStore(String name, String remoteMetaStoreUris, AccessControlType accessControlType) { this.name = name;