From 71bc23ed02fbb477e14e44ec65a08e8c5593f4bf Mon Sep 17 00:00:00 2001 From: Jon Chambers Date: Mon, 23 Mar 2026 10:54:28 -0400 Subject: [PATCH] Standardize formatting in `DynamicRemoteDeprecationConfiguration` --- ...DynamicRemoteDeprecationConfiguration.java | 93 +++++++++---------- 1 file changed, 46 insertions(+), 47 deletions(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/configuration/dynamic/DynamicRemoteDeprecationConfiguration.java b/service/src/main/java/org/whispersystems/textsecuregcm/configuration/dynamic/DynamicRemoteDeprecationConfiguration.java index 428532503..a9a069688 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/configuration/dynamic/DynamicRemoteDeprecationConfiguration.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/configuration/dynamic/DynamicRemoteDeprecationConfiguration.java @@ -8,71 +8,70 @@ package org.whispersystems.textsecuregcm.configuration.dynamic; import com.fasterxml.jackson.annotation.JsonProperty; import com.google.common.annotations.VisibleForTesting; import com.vdurmont.semver4j.Semver; -import org.whispersystems.textsecuregcm.util.ua.ClientPlatform; - import java.util.Collections; import java.util.Map; import java.util.Set; +import org.whispersystems.textsecuregcm.util.ua.ClientPlatform; public class DynamicRemoteDeprecationConfiguration { - @JsonProperty - private Map minimumVersions = Collections.emptyMap(); + @JsonProperty + private Map minimumVersions = Collections.emptyMap(); - @JsonProperty - private Map versionsPendingDeprecation = Collections.emptyMap(); + @JsonProperty + private Map versionsPendingDeprecation = Collections.emptyMap(); - @JsonProperty - private Map> blockedVersions = Collections.emptyMap(); + @JsonProperty + private Map> blockedVersions = Collections.emptyMap(); - @JsonProperty - private Map> versionsPendingBlock = Collections.emptyMap(); + @JsonProperty + private Map> versionsPendingBlock = Collections.emptyMap(); - @JsonProperty - private boolean unrecognizedUserAgentAllowed = true; + @JsonProperty + private boolean unrecognizedUserAgentAllowed = true; - @VisibleForTesting - public void setMinimumVersions(final Map minimumVersions) { - this.minimumVersions = minimumVersions; - } + @VisibleForTesting + public void setMinimumVersions(final Map minimumVersions) { + this.minimumVersions = minimumVersions; + } - public Map getMinimumVersions() { - return minimumVersions; - } + public Map getMinimumVersions() { + return minimumVersions; + } - @VisibleForTesting - public void setVersionsPendingDeprecation(final Map versionsPendingDeprecation) { - this.versionsPendingDeprecation = versionsPendingDeprecation; - } + @VisibleForTesting + public void setVersionsPendingDeprecation(final Map versionsPendingDeprecation) { + this.versionsPendingDeprecation = versionsPendingDeprecation; + } - public Map getVersionsPendingDeprecation() { - return versionsPendingDeprecation; - } + public Map getVersionsPendingDeprecation() { + return versionsPendingDeprecation; + } - @VisibleForTesting - public void setUnrecognizedUserAgentAllowed(final boolean allowUnrecognizedUserAgents) { - this.unrecognizedUserAgentAllowed = allowUnrecognizedUserAgents; - } + @VisibleForTesting + public void setUnrecognizedUserAgentAllowed(final boolean allowUnrecognizedUserAgents) { + this.unrecognizedUserAgentAllowed = allowUnrecognizedUserAgents; + } - public boolean isUnrecognizedUserAgentAllowed() { - return unrecognizedUserAgentAllowed; - } + public boolean isUnrecognizedUserAgentAllowed() { + return unrecognizedUserAgentAllowed; + } - @VisibleForTesting - public void setBlockedVersions(final Map> blockedVersions) { - this.blockedVersions = blockedVersions; - } + @VisibleForTesting + public void setBlockedVersions(final Map> blockedVersions) { + this.blockedVersions = blockedVersions; + } - public Map> getBlockedVersions() { - return blockedVersions; - } + public Map> getBlockedVersions() { + return blockedVersions; + } - @VisibleForTesting - public void setVersionsPendingBlock(final Map> versionsPendingBlock) { - this.versionsPendingBlock = versionsPendingBlock; - } + @VisibleForTesting + public void setVersionsPendingBlock(final Map> versionsPendingBlock) { + this.versionsPendingBlock = versionsPendingBlock; + } - public Map> getVersionsPendingBlock() { - return versionsPendingBlock; - } + public Map> getVersionsPendingBlock() { + return versionsPendingBlock; + } }