Skip to content

Commit

Permalink
Remove serializable from API (strimzi#9997)
Browse files Browse the repository at this point in the history
Signed-off-by: see-quick <[email protected]>
  • Loading branch information
see-quick authored Apr 20, 2024
1 parent 956f84d commit 4a3db17
Show file tree
Hide file tree
Showing 186 changed files with 106 additions and 559 deletions.
2 changes: 1 addition & 1 deletion .checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<property name="specialImportsRegExp" value="^javax\."/>
<property name="standardPackageRegExp" value="^java\."/>
<property name="sortImportsInGroupAlphabetically" value="true"/>
<property name="separateLineBetweenGroups" value="false"/>
<property name="separateLineBetweenGroups" value="true"/>
</module>

<!-- style -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class KafkaBridgeAdminClientSpec extends KafkaBridgeClientSpec {
private static final long serialVersionUID = 1L;

public static final String FORBIDDEN_PREFIXES = "ssl., bootstrap.servers, sasl., security.";
public static final String FORBIDDEN_PREFIX_EXCEPTIONS = "ssl.endpoint.identification.algorithm, ssl.cipher.suites, ssl.protocol, ssl.enabled.protocols";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

Expand All @@ -24,10 +23,7 @@
@JsonInclude(JsonInclude.Include.NON_NULL)
@EqualsAndHashCode
@ToString
public abstract class KafkaBridgeClientSpec implements UnknownPropertyPreserving, Serializable {

private static final long serialVersionUID = 1L;

public abstract class KafkaBridgeClientSpec implements UnknownPropertyPreserving {
protected Map<String, Object> config = new HashMap<>(0);

private Map<String, Object> additionalProperties;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class KafkaBridgeConsumerSpec extends KafkaBridgeClientSpec {
private static final long serialVersionUID = 1L;

public static final String FORBIDDEN_PREFIXES = "ssl., bootstrap.servers, group.id, sasl., security.";
public static final String FORBIDDEN_PREFIX_EXCEPTIONS = "ssl.endpoint.identification.algorithm, ssl.cipher.suites, ssl.protocol, ssl.enabled.protocols";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

Expand All @@ -32,10 +31,7 @@
@JsonPropertyOrder({"port", "cors"})
@EqualsAndHashCode
@ToString
public class KafkaBridgeHttpConfig implements UnknownPropertyPreserving, Serializable {

private static final long serialVersionUID = 1L;

public class KafkaBridgeHttpConfig implements UnknownPropertyPreserving {
public static final int HTTP_DEFAULT_PORT = 8080;
public static final String HTTP_DEFAULT_HOST = "0.0.0.0";
private int port = HTTP_DEFAULT_PORT;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
Expand All @@ -30,9 +29,7 @@
@JsonPropertyOrder({"allowedOrigins", "allowedMethods"})
@EqualsAndHashCode
@ToString
public class KafkaBridgeHttpCors implements UnknownPropertyPreserving, Serializable {
private static final long serialVersionUID = 1L;

public class KafkaBridgeHttpCors implements UnknownPropertyPreserving {
private List<String> allowedOrigins = null;
private List<String> allowedMethods = null;
private Map<String, Object> additionalProperties = new HashMap<>(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class KafkaBridgeProducerSpec extends KafkaBridgeClientSpec {
private static final long serialVersionUID = 1L;

public static final String FORBIDDEN_PREFIXES = "ssl., bootstrap.servers, sasl., security.";
public static final String FORBIDDEN_PREFIX_EXCEPTIONS = "ssl.endpoint.identification.algorithm, ssl.cipher.suites, ssl.protocol, ssl.enabled.protocols";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class KafkaBridgeSpec extends Spec implements HasConfigurableLogging, HasLivenessProbe, HasReadinessProbe {
private static final long serialVersionUID = 1L;
private static final int DEFAULT_REPLICAS = 1;

private int replicas = DEFAULT_REPLICAS;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class KafkaBridgeStatus extends Status {
private static final long serialVersionUID = 1L;

private String url;
private int replicas;
private String labelSelector;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

Expand All @@ -34,9 +33,7 @@
@JsonPropertyOrder({"deployment", "pod", "apiService", "podDisruptionBudget", "bridgeContainer", "clusterRoleBinding", "serviceAccount", "initContainer"})
@EqualsAndHashCode
@ToString
public class KafkaBridgeTemplate implements Serializable, UnknownPropertyPreserving {
private static final long serialVersionUID = 1L;

public class KafkaBridgeTemplate implements UnknownPropertyPreserving {
private DeploymentTemplate deployment;
private PodTemplate pod;
private InternalServiceTemplate apiService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class CertAndKeySecretSource extends CertSecretSource {
private static final long serialVersionUID = 1L;

protected String key;

@Description("The name of the private key in the Secret.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

Expand All @@ -27,10 +26,7 @@
@JsonPropertyOrder({"secretName", "certificate"})
@EqualsAndHashCode
@ToString
public class CertSecretSource implements UnknownPropertyPreserving, Serializable {

private static final long serialVersionUID = 1L;

public class CertSecretSource implements UnknownPropertyPreserving {
protected String secretName;
protected String certificate;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

Expand All @@ -28,10 +27,7 @@
"renewalDays", "certificateExpirationPolicy" })
@EqualsAndHashCode
@ToString
public class CertificateAuthority implements UnknownPropertyPreserving, Serializable {

private static final long serialVersionUID = 1L;

public class CertificateAuthority implements UnknownPropertyPreserving {
private int validityDays;
private boolean generateCertificateAuthority = true;
private boolean generateSecretOwnerReference = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
Expand All @@ -31,9 +30,7 @@
@JsonPropertyOrder({"trustedCertificates"})
@EqualsAndHashCode
@ToString
public class ClientTls implements UnknownPropertyPreserving, Serializable {
private static final long serialVersionUID = 1L;

public class ClientTls implements UnknownPropertyPreserving {
private List<CertSecretSource> trustedCertificates;
private Map<String, Object> additionalProperties;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

Expand All @@ -25,9 +24,7 @@
@JsonPropertyOrder({ "type", "status", "lastTransitionTime", "reason", "message" })
@EqualsAndHashCode
@ToString
public class Condition implements UnknownPropertyPreserving, Serializable {
private static final long serialVersionUID = 1L;

public class Condition implements UnknownPropertyPreserving {
private String status;
private String reason;
private String message;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

Expand All @@ -27,10 +26,7 @@
@JsonPropertyOrder({"name", "value"})
@EqualsAndHashCode
@ToString
public class ContainerEnvVar implements UnknownPropertyPreserving, Serializable {

private static final long serialVersionUID = 1L;

public class ContainerEnvVar implements UnknownPropertyPreserving {
private String name;
private String value;
private Map<String, Object> additionalProperties = new HashMap<>(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

Expand All @@ -28,10 +27,7 @@
@JsonPropertyOrder({"configMapKeyRef"})
@EqualsAndHashCode
@ToString
public class ExternalConfigurationReference implements Serializable, UnknownPropertyPreserving {

private static final long serialVersionUID = 1L;

public class ExternalConfigurationReference implements UnknownPropertyPreserving {
private ConfigMapKeySelector configMapKeyRef;
private Map<String, Object> additionalProperties = new HashMap<>(0);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ExternalLogging extends Logging {

private static final long serialVersionUID = 1L;
public static final String TYPE_EXTERNAL = "external";

private ExternalConfigurationReference valueFrom;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

Expand All @@ -27,9 +26,7 @@
@JsonPropertyOrder({"key", "secretName"})
@EqualsAndHashCode
@ToString
public class GenericSecretSource implements UnknownPropertyPreserving, Serializable {
private static final long serialVersionUID = 1L;

public class GenericSecretSource implements UnknownPropertyPreserving {
protected String secretName;
protected String key;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class InlineLogging extends Logging {

private static final long serialVersionUID = 1L;

public static final String TYPE_INLINE = "inline";

private Map<String, String> loggers = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
Expand All @@ -29,9 +28,7 @@
@JsonPropertyOrder({"-XX", "-Xmx", "-Xms", "gcLoggingEnabled", "javaSystemProperties"})
@EqualsAndHashCode
@ToString
public class JvmOptions implements UnknownPropertyPreserving, Serializable {
private static final long serialVersionUID = 1L;

public class JvmOptions implements UnknownPropertyPreserving {
/**
* Configures the default value for the GC logging configuration. This is used in the model classes when the
* jvmOptions section is not set at all. Storing it here ensures that the default value is the same when jvmOptions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

Expand All @@ -28,10 +27,7 @@
@JsonInclude(JsonInclude.Include.NON_NULL)
@EqualsAndHashCode
@ToString
public abstract class Logging implements UnknownPropertyPreserving, Serializable {

private static final long serialVersionUID = 1L;

public abstract class Logging implements UnknownPropertyPreserving {
private Map<String, Object> additionalProperties = new HashMap<>(0);

@Description("Logging type, must be either 'inline' or 'external'.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

Expand All @@ -27,9 +26,7 @@
@JsonPropertyOrder({"valueFrom"})
@EqualsAndHashCode
@ToString
public class Password implements Serializable, UnknownPropertyPreserving {
private static final long serialVersionUID = 1L;

public class Password implements UnknownPropertyPreserving {
private PasswordSource valueFrom;

private Map<String, Object> additionalProperties = new HashMap<>(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

Expand All @@ -27,10 +26,7 @@
@JsonPropertyOrder({"secretName", "password"})
@EqualsAndHashCode
@ToString
public class PasswordSecretSource implements UnknownPropertyPreserving, Serializable {

private static final long serialVersionUID = 1L;

public class PasswordSecretSource implements UnknownPropertyPreserving {
protected String secretName;
protected String password;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

Expand All @@ -28,9 +27,7 @@
@JsonPropertyOrder({"secretKeyRef"})
@EqualsAndHashCode
@ToString
public class PasswordSource implements Serializable, UnknownPropertyPreserving {
private static final long serialVersionUID = 1L;

public class PasswordSource implements UnknownPropertyPreserving {
private SecretKeySelector secretKeyRef;

private final Map<String, Object> additionalProperties = new HashMap<>(0);
Expand Down
Loading

0 comments on commit 4a3db17

Please sign in to comment.