From b0f05f72be9a1192e40ec53e1acde59c936b268e Mon Sep 17 00:00:00 2001 From: Paul Gier Date: Fri, 25 Aug 2023 17:30:24 -0500 Subject: [PATCH] fix a couple of compiler warnings - [WARNING] kaap/operator/src/main/java/com/datastax/oss/kaap/crds/GlobalSpec.java:[42,1] Generating equals/hashCode implementation but without a call to superclass, even though this class does not extend java.lang.Object. If this is intentional, add '@EqualsAndHashCode(callSuper=false)' to your type. --- .../src/main/java/com/datastax/oss/kaap/crds/GlobalSpec.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/operator/src/main/java/com/datastax/oss/kaap/crds/GlobalSpec.java b/operator/src/main/java/com/datastax/oss/kaap/crds/GlobalSpec.java index ab155999..81b2cdc7 100644 --- a/operator/src/main/java/com/datastax/oss/kaap/crds/GlobalSpec.java +++ b/operator/src/main/java/com/datastax/oss/kaap/crds/GlobalSpec.java @@ -37,6 +37,7 @@ import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; +import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import org.apache.commons.lang3.ObjectUtils; @@ -44,6 +45,7 @@ @NoArgsConstructor @AllArgsConstructor @Builder +@EqualsAndHashCode(callSuper = false) public class GlobalSpec extends ValidableSpec implements WithDefaults { @@ -151,7 +153,6 @@ public static class GlobalStorageConfig { private String existingStorageClassName; } - @NotNull @Required @JsonPropertyDescription("Pulsar cluster name.")