Skip to content

Commit

Permalink
fix: generated code creates collections using diamond operator (gener…
Browse files Browse the repository at this point in the history
…ated)

Signed-off-by: Marc Nuri <[email protected]>
  • Loading branch information
manusa committed Jul 3, 2024
1 parent a75c652 commit 2a6efc1
Show file tree
Hide file tree
Showing 1,624 changed files with 3,183 additions and 3,282 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public class ACMEAuthorization implements Editable<ACMEAuthorizationBuilder> , K

@JsonProperty("challenges")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<ACMEChallenge> challenges = new ArrayList<ACMEChallenge>();
private List<ACMEChallenge> challenges = new ArrayList<>();
@JsonProperty("identifier")
private String identifier;
@JsonProperty("initialState")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ public class ACMEChallengeSolverHTTP01GatewayHTTPRoute implements Editable<ACMEC

@JsonProperty("labels")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private Map<String, String> labels = new LinkedHashMap<String, String>();
private Map<String, String> labels = new LinkedHashMap<>();
@JsonProperty("parentRefs")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<ParentReference> parentRefs = new ArrayList<ParentReference>();
private List<ParentReference> parentRefs = new ArrayList<>();
@JsonProperty("serviceType")
private java.lang.String serviceType;
@JsonIgnore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ public class ACMEChallengeSolverHTTP01IngressObjectMeta implements Editable<ACME

@JsonProperty("annotations")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private Map<String, String> annotations = new LinkedHashMap<String, String>();
private Map<String, String> annotations = new LinkedHashMap<>();
@JsonProperty("labels")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private Map<String, String> labels = new LinkedHashMap<String, String>();
private Map<String, String> labels = new LinkedHashMap<>();
@JsonIgnore
private Map<java.lang.String, Object> additionalProperties = new LinkedHashMap<java.lang.String, Object>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ public class ACMEChallengeSolverHTTP01IngressPodObjectMeta implements Editable<A

@JsonProperty("annotations")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private Map<String, String> annotations = new LinkedHashMap<String, String>();
private Map<String, String> annotations = new LinkedHashMap<>();
@JsonProperty("labels")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private Map<String, String> labels = new LinkedHashMap<String, String>();
private Map<String, String> labels = new LinkedHashMap<>();
@JsonIgnore
private Map<java.lang.String, Object> additionalProperties = new LinkedHashMap<java.lang.String, Object>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,17 @@ public class ACMEChallengeSolverHTTP01IngressPodSpec implements Editable<ACMECha
private Affinity affinity;
@JsonProperty("imagePullSecrets")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.kubernetes.api.model.LocalObjectReference> imagePullSecrets = new ArrayList<io.fabric8.kubernetes.api.model.LocalObjectReference>();
private List<io.fabric8.kubernetes.api.model.LocalObjectReference> imagePullSecrets = new ArrayList<>();
@JsonProperty("nodeSelector")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private Map<String, String> nodeSelector = new LinkedHashMap<String, String>();
private Map<String, String> nodeSelector = new LinkedHashMap<>();
@JsonProperty("priorityClassName")
private java.lang.String priorityClassName;
@JsonProperty("serviceAccountName")
private java.lang.String serviceAccountName;
@JsonProperty("tolerations")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<Toleration> tolerations = new ArrayList<Toleration>();
private List<Toleration> tolerations = new ArrayList<>();
@JsonIgnore
private Map<java.lang.String, Object> additionalProperties = new LinkedHashMap<java.lang.String, Object>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public class ACMEIssuer implements Editable<ACMEIssuerBuilder> , KubernetesResou
private Boolean skipTLSVerify;
@JsonProperty("solvers")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<ACMEChallengeSolver> solvers = new ArrayList<ACMEChallengeSolver>();
private List<ACMEChallengeSolver> solvers = new ArrayList<>();
@JsonIgnore
private Map<String, Object> additionalProperties = new LinkedHashMap<String, Object>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ public class CertificateDNSNameSelector implements Editable<CertificateDNSNameSe

@JsonProperty("dnsNames")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<java.lang.String> dnsNames = new ArrayList<java.lang.String>();
private List<java.lang.String> dnsNames = new ArrayList<>();
@JsonProperty("dnsZones")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<java.lang.String> dnsZones = new ArrayList<java.lang.String>();
private List<java.lang.String> dnsZones = new ArrayList<>();
@JsonProperty("matchLabels")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private Map<String, String> matchLabels = new LinkedHashMap<String, String>();
private Map<String, String> matchLabels = new LinkedHashMap<>();
@JsonIgnore
private Map<java.lang.String, Object> additionalProperties = new LinkedHashMap<java.lang.String, Object>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public class ChallengeList implements Editable<ChallengeListBuilder> , Kubernete
private String apiVersion = "acme.cert-manager.io/v1";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.acme.v1.Challenge> items = new ArrayList<io.fabric8.certmanager.api.model.acme.v1.Challenge>();
private List<io.fabric8.certmanager.api.model.acme.v1.Challenge> items = new ArrayList<>();
/**
*
* (Required)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public class OrderList implements Editable<OrderListBuilder> , KubernetesResourc
private String apiVersion = "acme.cert-manager.io/v1";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.acme.v1.Order> items = new ArrayList<io.fabric8.certmanager.api.model.acme.v1.Order>();
private List<io.fabric8.certmanager.api.model.acme.v1.Order> items = new ArrayList<>();
/**
*
* (Required)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ public class OrderSpec implements Editable<OrderSpecBuilder> , KubernetesResourc
private String commonName;
@JsonProperty("dnsNames")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<String> dnsNames = new ArrayList<String>();
private List<String> dnsNames = new ArrayList<>();
@JsonProperty("duration")
private Duration duration;
@JsonProperty("ipAddresses")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<String> ipAddresses = new ArrayList<String>();
private List<String> ipAddresses = new ArrayList<>();
@JsonProperty("issuerRef")
private io.fabric8.certmanager.api.model.meta.v1.ObjectReference issuerRef;
@JsonProperty("request")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public class OrderStatus implements Editable<OrderStatusBuilder> , KubernetesRes

@JsonProperty("authorizations")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<ACMEAuthorization> authorizations = new ArrayList<ACMEAuthorization>();
private List<ACMEAuthorization> authorizations = new ArrayList<>();
@JsonProperty("certificate")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private String certificate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ public class CAIssuer implements Editable<CAIssuerBuilder> , KubernetesResource

@JsonProperty("crlDistributionPoints")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<String> crlDistributionPoints = new ArrayList<String>();
private List<String> crlDistributionPoints = new ArrayList<>();
@JsonProperty("issuingCertificateURLs")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<String> issuingCertificateURLs = new ArrayList<String>();
private List<String> issuingCertificateURLs = new ArrayList<>();
@JsonProperty("ocspServers")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<String> ocspServers = new ArrayList<String>();
private List<String> ocspServers = new ArrayList<>();
@JsonProperty("secretName")
private String secretName;
@JsonIgnore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public class CertificateList implements Editable<CertificateListBuilder> , Kuber
private String apiVersion = "cert-manager.io/v1";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.v1.Certificate> items = new ArrayList<io.fabric8.certmanager.api.model.v1.Certificate>();
private List<io.fabric8.certmanager.api.model.v1.Certificate> items = new ArrayList<>();
/**
*
* (Required)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public class CertificateRequestList implements Editable<CertificateRequestListBu
private String apiVersion = "cert-manager.io/v1";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.v1.CertificateRequest> items = new ArrayList<io.fabric8.certmanager.api.model.v1.CertificateRequest>();
private List<io.fabric8.certmanager.api.model.v1.CertificateRequest> items = new ArrayList<>();
/**
*
* (Required)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public class CertificateRequestStatus implements Editable<CertificateRequestStat
private String certificate;
@JsonProperty("conditions")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<CertificateRequestCondition> conditions = new ArrayList<CertificateRequestCondition>();
private List<CertificateRequestCondition> conditions = new ArrayList<>();
@JsonProperty("failureTime")
private String failureTime;
@JsonIgnore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ public class CertificateSecretTemplate implements Editable<CertificateSecretTemp

@JsonProperty("annotations")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private Map<String, String> annotations = new LinkedHashMap<String, String>();
private Map<String, String> annotations = new LinkedHashMap<>();
@JsonProperty("labels")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private Map<String, String> labels = new LinkedHashMap<String, String>();
private Map<String, String> labels = new LinkedHashMap<>();
@JsonIgnore
private Map<java.lang.String, Object> additionalProperties = new LinkedHashMap<java.lang.String, Object>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,22 +86,22 @@ public class CertificateSpec implements Editable<CertificateSpecBuilder> , Kuber

@JsonProperty("additionalOutputFormats")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<CertificateAdditionalOutputFormat> additionalOutputFormats = new ArrayList<CertificateAdditionalOutputFormat>();
private List<CertificateAdditionalOutputFormat> additionalOutputFormats = new ArrayList<>();
@JsonProperty("commonName")
private String commonName;
@JsonProperty("dnsNames")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<String> dnsNames = new ArrayList<String>();
private List<String> dnsNames = new ArrayList<>();
@JsonProperty("duration")
private Duration duration;
@JsonProperty("emailAddresses")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<String> emailAddresses = new ArrayList<String>();
private List<String> emailAddresses = new ArrayList<>();
@JsonProperty("encodeUsagesInRequest")
private Boolean encodeUsagesInRequest;
@JsonProperty("ipAddresses")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<String> ipAddresses = new ArrayList<String>();
private List<String> ipAddresses = new ArrayList<>();
@JsonProperty("isCA")
private java.lang.Boolean isCA;
@JsonProperty("issuerRef")
Expand All @@ -114,7 +114,7 @@ public class CertificateSpec implements Editable<CertificateSpecBuilder> , Kuber
private NameConstraints nameConstraints;
@JsonProperty("otherNames")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<OtherName> otherNames = new ArrayList<OtherName>();
private List<OtherName> otherNames = new ArrayList<>();
@JsonProperty("privateKey")
private CertificatePrivateKey privateKey;
@JsonProperty("renewBefore")
Expand All @@ -129,10 +129,10 @@ public class CertificateSpec implements Editable<CertificateSpecBuilder> , Kuber
private X509Subject subject;
@JsonProperty("uris")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<String> uris = new ArrayList<String>();
private List<String> uris = new ArrayList<>();
@JsonProperty("usages")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<String> usages = new ArrayList<String>();
private List<String> usages = new ArrayList<>();
@JsonIgnore
private Map<String, Object> additionalProperties = new LinkedHashMap<String, Object>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class CertificateStatus implements Editable<CertificateStatusBuilder> , K

@JsonProperty("conditions")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<CertificateCondition> conditions = new ArrayList<CertificateCondition>();
private List<CertificateCondition> conditions = new ArrayList<>();
@JsonProperty("failedIssuanceAttempts")
private Integer failedIssuanceAttempts;
@JsonProperty("lastFailureTime")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public class ClusterIssuerList implements Editable<ClusterIssuerListBuilder> , K
private String apiVersion = "cert-manager.io/v1";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.v1.ClusterIssuer> items = new ArrayList<io.fabric8.certmanager.api.model.v1.ClusterIssuer>();
private List<io.fabric8.certmanager.api.model.v1.ClusterIssuer> items = new ArrayList<>();
/**
*
* (Required)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public class IssuerList implements Editable<IssuerListBuilder> , KubernetesResou
private String apiVersion = "cert-manager.io/v1";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.v1.Issuer> items = new ArrayList<io.fabric8.certmanager.api.model.v1.Issuer>();
private List<io.fabric8.certmanager.api.model.v1.Issuer> items = new ArrayList<>();
/**
*
* (Required)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public class IssuerStatus implements Editable<IssuerStatusBuilder> , KubernetesR
private ACMEIssuerStatus acme;
@JsonProperty("conditions")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<IssuerCondition> conditions = new ArrayList<IssuerCondition>();
private List<IssuerCondition> conditions = new ArrayList<>();
@JsonIgnore
private Map<String, Object> additionalProperties = new LinkedHashMap<String, Object>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,16 @@ public class NameConstraintItem implements Editable<NameConstraintItemBuilder> ,

@JsonProperty("dnsDomains")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<String> dnsDomains = new ArrayList<String>();
private List<String> dnsDomains = new ArrayList<>();
@JsonProperty("emailAddresses")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<String> emailAddresses = new ArrayList<String>();
private List<String> emailAddresses = new ArrayList<>();
@JsonProperty("ipRanges")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<String> ipRanges = new ArrayList<String>();
private List<String> ipRanges = new ArrayList<>();
@JsonProperty("uriDomains")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<String> uriDomains = new ArrayList<String>();
private List<String> uriDomains = new ArrayList<>();
@JsonIgnore
private Map<String, Object> additionalProperties = new LinkedHashMap<String, Object>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class SelfSignedIssuer implements Editable<SelfSignedIssuerBuilder> , Kub

@JsonProperty("crlDistributionPoints")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<String> crlDistributionPoints = new ArrayList<String>();
private List<String> crlDistributionPoints = new ArrayList<>();
@JsonIgnore
private Map<String, Object> additionalProperties = new LinkedHashMap<String, Object>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,27 +73,27 @@ public class X509Subject implements Editable<X509SubjectBuilder> , KubernetesRes

@JsonProperty("countries")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<String> countries = new ArrayList<String>();
private List<String> countries = new ArrayList<>();
@JsonProperty("localities")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<String> localities = new ArrayList<String>();
private List<String> localities = new ArrayList<>();
@JsonProperty("organizationalUnits")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<String> organizationalUnits = new ArrayList<String>();
private List<String> organizationalUnits = new ArrayList<>();
@JsonProperty("organizations")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<String> organizations = new ArrayList<String>();
private List<String> organizations = new ArrayList<>();
@JsonProperty("postalCodes")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<String> postalCodes = new ArrayList<String>();
private List<String> postalCodes = new ArrayList<>();
@JsonProperty("provinces")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<String> provinces = new ArrayList<String>();
private List<String> provinces = new ArrayList<>();
@JsonProperty("serialNumber")
private String serialNumber;
@JsonProperty("streetAddresses")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<String> streetAddresses = new ArrayList<String>();
private List<String> streetAddresses = new ArrayList<>();
@JsonIgnore
private Map<String, Object> additionalProperties = new LinkedHashMap<String, Object>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public class ACMEAuthorization implements Editable<ACMEAuthorizationBuilder> , K

@JsonProperty("challenges")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<ACMEChallenge> challenges = new ArrayList<ACMEChallenge>();
private List<ACMEChallenge> challenges = new ArrayList<>();
@JsonProperty("identifier")
private String identifier;
@JsonProperty("initialState")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public class ACMEChallengeSolverHTTP01GatewayHTTPRoute implements Editable<ACMEC

@JsonProperty("labels")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private Map<String, String> labels = new LinkedHashMap<String, String>();
private Map<String, String> labels = new LinkedHashMap<>();
@JsonProperty("serviceType")
private java.lang.String serviceType;
@JsonIgnore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ public class ACMEChallengeSolverHTTP01IngressObjectMeta implements Editable<ACME

@JsonProperty("annotations")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private Map<String, String> annotations = new LinkedHashMap<String, String>();
private Map<String, String> annotations = new LinkedHashMap<>();
@JsonProperty("labels")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private Map<String, String> labels = new LinkedHashMap<String, String>();
private Map<String, String> labels = new LinkedHashMap<>();
@JsonIgnore
private Map<java.lang.String, Object> additionalProperties = new LinkedHashMap<java.lang.String, Object>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ public class ACMEChallengeSolverHTTP01IngressPodObjectMeta implements Editable<A

@JsonProperty("annotations")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private Map<String, String> annotations = new LinkedHashMap<String, String>();
private Map<String, String> annotations = new LinkedHashMap<>();
@JsonProperty("labels")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private Map<String, String> labels = new LinkedHashMap<String, String>();
private Map<String, String> labels = new LinkedHashMap<>();
@JsonIgnore
private Map<java.lang.String, Object> additionalProperties = new LinkedHashMap<java.lang.String, Object>();

Expand Down
Loading

0 comments on commit 2a6efc1

Please sign in to comment.