Skip to content

[configurationwebhooks] Code generation: update services and models#1784

Closed
AdyenAutomationBot wants to merge 1 commit intomainfrom
sdk-automation/configurationwebhooks
Closed

[configurationwebhooks] Code generation: update services and models#1784
AdyenAutomationBot wants to merge 1 commit intomainfrom
sdk-automation/configurationwebhooks

Conversation

@AdyenAutomationBot
Copy link
Copy Markdown
Collaborator

This PR contains the automated changes for the configurationwebhooks service.

The commit history of this PR reflects the adyen-openapi commits that have been applied.

@AdyenAutomationBot AdyenAutomationBot requested review from a team as code owners March 9, 2026 13:31
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on code generation updates for the configurationwebhooks service, involving package relocation, removal of a handler class, and enhancements in JSON serialization control. The changes aim to improve code organization and provide more explicit handling of null values in the JSON payloads.

Highlights

  • Package Relocation: Moved several model classes from com.adyen.model.configurationwebhooks to com.adyen.model.java to align with standard Java package naming conventions.
  • Removal of Handler Class: Removed the ConfigurationWebhooksHandler.java class, likely due to updates in how webhooks are processed.
  • Addition of isSet Properties: Added isSet boolean properties for each field in the model classes to explicitly track whether a field has been set, enabling more precise JSON serialization control.
  • Null Value Handling: Implemented explicit null value handling in model classes using @JsonInclude(JsonInclude.Include.ALWAYS) and @JsonAnyGetter to manage null values during JSON serialization.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • src/main/java/com/adyen/model/configurationwebhooks/AbstractOpenApiSchema.java
    • Renamed to AbstractOpenApiSchema.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
  • src/main/java/com/adyen/model/configurationwebhooks/AccountHolder.java
    • Renamed to AccountHolder.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/AccountHolderCapability.java
    • Renamed to AccountHolderCapability.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/AccountHolderNotificationData.java
    • Renamed to AccountHolderNotificationData.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/AccountHolderNotificationRequest.java
    • Renamed to AccountHolderNotificationRequest.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/AccountSupportingEntityCapability.java
    • Renamed to AccountSupportingEntityCapability.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/Address.java
    • Renamed to Address.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/Amount.java
    • Renamed to Amount.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/Authentication.java
    • Renamed to Authentication.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/Balance.java
    • Renamed to Balance.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/BalanceAccount.java
    • Renamed to BalanceAccount.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/BalanceAccountNotificationData.java
    • Renamed to BalanceAccountNotificationData.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/BalanceAccountNotificationRequest.java
    • Renamed to BalanceAccountNotificationRequest.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/BalancePlatformNotificationResponse.java
    • Renamed to BalancePlatformNotificationResponse.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/BankAccountDetails.java
    • Renamed to BankAccountDetails.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/BankScoreSignalTriggeredData.java
    • Renamed to BankScoreSignalTriggeredData.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/BulkAddress.java
    • Renamed to BulkAddress.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblem.java
    • Renamed to CapabilityProblem.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblemEntity.java
    • Renamed to CapabilityProblemEntity.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblemEntityRecursive.java
    • Renamed to CapabilityProblemEntityRecursive.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/CapabilitySettings.java
    • Renamed to CapabilitySettings.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/Card.java
    • Renamed to Card.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/CardConfiguration.java
    • Renamed to CardConfiguration.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/CardOrderItem.java
    • Renamed to CardOrderItem.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/CardOrderItemDeliveryStatus.java
    • Renamed to CardOrderItemDeliveryStatus.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/CardOrderNotificationRequest.java
    • Renamed to CardOrderNotificationRequest.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/ConfigurationWebhooksHandler.java
    • Removed the class.
  • src/main/java/com/adyen/model/configurationwebhooks/ContactDetails.java
    • Renamed to ContactDetails.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/DeliveryAddress.java
    • Renamed to DeliveryAddress.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/DeliveryContact.java
    • Renamed to DeliveryContact.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/Device.java
    • Renamed to Device.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/Expiry.java
    • Renamed to Expiry.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/IbanAccountIdentification.java
    • Renamed to IbanAccountIdentification.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/JSON.java
    • Moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
  • src/main/java/com/adyen/model/configurationwebhooks/Name.java
    • Renamed to Name.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationDataV2.java
    • Renamed to NetworkTokenNotificationDataV2.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationRequest.java
    • Renamed to NetworkTokenNotificationRequest.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRequestor.java
    • Renamed to NetworkTokenRequestor.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleData.java
    • Renamed to NetworkTokenRiskRuleData.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleSource.java
    • Renamed to NetworkTokenRiskRuleSource.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTransactionRulesResult.java
    • Renamed to NetworkTokenTransactionRulesResult.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTriggeredRiskRule.java
    • Renamed to NetworkTokenTriggeredRiskRule.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrument.java
    • Renamed to PaymentInstrument.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java
    • Renamed to PaymentInstrumentAdditionalBankAccountIdentificationsInner.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
  • src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentNotificationData.java
    • Renamed to PaymentInstrumentNotificationData.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/PaymentNotificationRequest.java
    • Renamed to PaymentNotificationRequest.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/Phone.java
    • Renamed to Phone.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/PhoneNumber.java
    • Renamed to PhoneNumber.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/PlatformPaymentConfiguration.java
    • Renamed to PlatformPaymentConfiguration.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/RemediatingAction.java
    • Renamed to RemediatingAction.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/Resource.java
    • Renamed to Resource.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/ResourceReference.java
    • Renamed to ResourceReference.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/ScoreNotificationRequest.java
    • Renamed to ScoreNotificationRequest.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationNotificationData.java
    • Renamed to SweepConfigurationNotificationData.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationNotificationRequest.java
    • Renamed to SweepConfigurationNotificationRequest.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationV2.java
    • Renamed to SweepConfigurationV2.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/SweepCounterparty.java
    • Renamed to SweepCounterparty.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/SweepSchedule.java
    • Renamed to SweepSchedule.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/TokenAuthentication.java
    • Renamed to TokenAuthentication.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/ValidationFacts.java
    • Renamed to ValidationFacts.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/VerificationDeadline.java
    • Renamed to VerificationDeadline.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/VerificationError.java
    • Renamed to VerificationError.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/VerificationErrorRecursive.java
    • Renamed to VerificationErrorRecursive.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
  • src/main/java/com/adyen/model/configurationwebhooks/Wallet.java
    • Renamed to Wallet.java and moved package from com.adyen.model.configurationwebhooks to com.adyen.model.java.
    • Added isSet properties for each field.
    • Implemented explicit null value handling using @JsonInclude and @JsonAnyGetter.
Activity
  • Package relocation of model classes
  • Removal of ConfigurationWebhooksHandler class
  • Addition of isSet properties to model classes
  • Implementation of explicit null value handling
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request, generated automatically, updates services and models for configurationwebhooks. It primarily involves refactoring model classes into a common com.adyen.model.java package, removing the ConfigurationWebhooksHandler, and introducing a mechanism for explicit null serialization in the model classes. While the changes are systematic, there's a critical issue: the tests that depend on the now-removed ConfigurationWebhooksHandler have not been updated, which will likely cause the build to fail. Please update the tests to align with these changes. Additionally, the new null serialization feature has introduced significant code duplication across model classes; this could be improved by using a base class to share common code, as noted in a specific comment.

Note: Security Review did not run due to the size of the PR.

Comment on lines +988 to +992
private void addIfNull(Map<String, Object> map, String key, Object value) {
if (value == null) {
map.put(key, null);
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This addIfNull helper method is duplicated across many model classes in this pull request. To improve code reuse and maintainability, consider extracting this method into a common base class that all model objects can extend. The includeNullValues field and its accessors could also be part of this base class.

Comment on lines +855 to +859
private void addIfNull(Map<String, Object> map, String key, Object value) {
if (value == null) {
map.put(key, null);
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This addIfNull helper method is duplicated across many model classes in this pull request. To improve code reuse and maintainability, consider extracting this method into a common base class that all model objects can extend. The includeNullValues field and its accessors could also be part of this base class.

Comment on lines +203 to +207
private void addIfNull(Map<String, Object> map, String key, Object value) {
if (value == null) {
map.put(key, null);
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This addIfNull helper method is duplicated across many model classes in this pull request. To improve code reuse and maintainability, consider extracting this method into a common base class that all model objects can extend. The includeNullValues field and its accessors could also be part of this base class.

Comment on lines +351 to +355
private void addIfNull(Map<String, Object> map, String key, Object value) {
if (value == null) {
map.put(key, null);
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This addIfNull helper method is duplicated across many model classes in this pull request. To improve code reuse and maintainability, consider extracting this method into a common base class that all model objects can extend. The includeNullValues field and its accessors could also be part of this base class.

Comment on lines +693 to +697
private void addIfNull(Map<String, Object> map, String key, Object value) {
if (value == null) {
map.put(key, null);
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This addIfNull helper method is duplicated across many model classes in this pull request. To improve code reuse and maintainability, consider extracting this method into a common base class that all model objects can extend. The includeNullValues field and its accessors could also be part of this base class.

Comment on lines +328 to +332
private void addIfNull(Map<String, Object> map, String key, Object value) {
if (value == null) {
map.put(key, null);
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This addIfNull helper method is duplicated across many model classes in this pull request. To improve code reuse and maintainability, consider extracting this method into a common base class that all model objects can extend. The includeNullValues field and its accessors could also be part of this base class.

Comment on lines +431 to +435
private void addIfNull(Map<String, Object> map, String key, Object value) {
if (value == null) {
map.put(key, null);
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This addIfNull helper method is duplicated across many model classes in this pull request. To improve code reuse and maintainability, consider extracting this method into a common base class that all model objects can extend. The includeNullValues field and its accessors could also be part of this base class.

Comment on lines +650 to +654
private void addIfNull(Map<String, Object> map, String key, Object value) {
if (value == null) {
map.put(key, null);
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This addIfNull helper method is duplicated across many model classes in this pull request. To improve code reuse and maintainability, consider extracting this method into a common base class that all model objects can extend. The includeNullValues field and its accessors could also be part of this base class.

Comment on lines +596 to +600
private void addIfNull(Map<String, Object> map, String key, Object value) {
if (value == null) {
map.put(key, null);
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This addIfNull helper method is duplicated across many model classes in this pull request. To improve code reuse and maintainability, consider extracting this method into a common base class that all model objects can extend. The includeNullValues field and its accessors could also be part of this base class.

Comment on lines +630 to +634
private void addIfNull(Map<String, Object> map, String key, Object value) {
if (value == null) {
map.put(key, null);
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This addIfNull helper method is duplicated across many model classes in this pull request. To improve code reuse and maintainability, consider extracting this method into a common base class that all model objects can extend. The includeNullValues field and its accessors could also be part of this base class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants