Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Jackson object mapper, readers and writers at class level #7251

Merged
merged 12 commits into from
Jan 25, 2023

Conversation

alexandra-bucur
Copy link
Contributor

Description

In order to improve performance overall, I removed all object mappers creation inside methods and instantiate the object at class level as a static final member.

Signed-off-by: Alexandra Bucur <alexandra-nona.bucur@ing.com>
@alexandra-bucur alexandra-bucur marked this pull request as draft December 16, 2022 12:45
@alexandra-bucur alexandra-bucur changed the title Create Jackson object mapper, reader and writers at class level Create Jackson object mapper, readers and writers at class level Dec 16, 2022
Signed-off-by: Alexandra Bucur <alexandra-nona.bucur@ing.com>
@alexandra-bucur alexandra-bucur marked this pull request as ready for review December 19, 2022 09:13
alexandra-bucur and others added 3 commits December 19, 2022 16:55
Signed-off-by: Alexandra Bucur <alexandra-nona.bucur@ing.com>

Co-authored-by: sonatype-lift[bot] <37194012+sonatype-lift[bot]@users.noreply.github.com>
Signed-off-by: Alexandra Bucur <alexandra-nona.bucur@ing.com>
Signed-off-by: Alexandra Bucur <alexandra-nona.bucur@ing.com>
Signed-off-by: Alexandra Bucur <alexandra-nona.bucur@ing.com>
Signed-off-by: Alexandra Bucur <alexandra-nona.bucur@ing.com>
@lpalashevski
Copy link
Contributor

Let's wait before we merge this; we may need to first merge #7138 then resolve small conflicts in this one.

@alexandra-bucur alexandra-bucur marked this pull request as draft December 21, 2022 09:09
@lpalashevski lpalashevski marked this pull request as ready for review January 25, 2023 08:52
� Conflicts:
�	open-metadata-implementation/access-services/asset-consumer/asset-consumer-topic-connectors/src/main/java/org/odpi/openmetadata/accessservices/assetconsumer/connectors/outtopic/AssetConsumerOutTopicServerConnector.java
�	open-metadata-implementation/access-services/asset-manager/asset-manager-topic-connectors/src/main/java/org/odpi/openmetadata/accessservices/assetmanager/connectors/outtopic/AssetManagerOutTopicServerConnector.java
�	open-metadata-implementation/access-services/asset-owner/asset-owner-topic-connectors/src/main/java/org/odpi/openmetadata/accessservices/assetowner/connectors/outtopic/AssetOwnerOutTopicServerConnector.java
�	open-metadata-implementation/access-services/community-profile/community-profile-topic-connectors/src/main/java/org/odpi/openmetadata/accessservices/communityprofile/connectors/outtopic/CommunityProfileOutTopicServerConnector.java
�	open-metadata-implementation/access-services/data-engine/data-engine-topic-connectors/src/main/java/org/odpi/openmetadata/accessservices/dataengine/connectors/intopic/DataEngineInTopicClientConnector.java
�	open-metadata-implementation/access-services/data-manager/data-manager-topic-connectors/src/main/java/org/odpi/openmetadata/accessservices/datamanager/connectors/outtopic/DataManagerOutTopicServerConnector.java
�	open-metadata-implementation/access-services/digital-architecture/digital-architecture-topic-connectors/src/main/java/org/odpi/openmetadata/accessservices/digitalarchitecture/connectors/outtopic/DigitalArchitectureOutTopicServerConnector.java
�	open-metadata-implementation/access-services/governance-engine/governance-engine-topic-connectors/src/main/java/org/odpi/openmetadata/accessservices/governanceengine/connectors/outtopic/GovernanceEngineOutTopicServerConnector.java
�	open-metadata-implementation/access-services/it-infrastructure/it-infrastructure-topic-connectors/src/main/java/org/odpi/openmetadata/accessservices/itinfrastructure/connectors/outtopic/ITInfrastructureOutTopicServerConnector.java
�	open-metadata-implementation/access-services/security-manager/security-manager-topic-connectors/src/main/java/org/odpi/openmetadata/accessservices/securitymanager/connectors/outtopic/SecurityManagerOutTopicServerConnector.java
�	open-metadata-implementation/access-services/security-officer/security-officer-topic-connectors/src/main/java/org/odpi/openmetadata/accessservices/securityofficer/connectors/outtopic/SecurityOfficerOutTopicServerConnector.java
�	open-metadata-implementation/access-services/stewardship-action/stewardship-action-topic-connectors/src/main/java/org/odpi/openmetadata/accessservices/stewardshipaction/connectors/outtopic/StewardshipActionOutTopicServerConnector.java
�	open-metadata-implementation/repository-services/repository-services-apis/src/main/java/org/odpi/openmetadata/repositoryservices/connectors/omrstopic/OMRSTopicConnector.java
Copy link
Contributor

@lpalashevski lpalashevski left a comment

Choose a reason for hiding this comment

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

Approve with minor comment (remove unused local objectMapper object)

Signed-off-by: Alexandra Bucur <alexandra-nona.bucur@ing.com>
@sonatype-lift
Copy link
Contributor

sonatype-lift bot commented Jan 25, 2023

🛠 Lift Auto-fix

Some of the Lift findings in this PR can be automatically fixed. You can download and apply these changes in your local project directory of your branch to review the suggestions before committing.1

# Download the patch
curl https://lift.sonatype.com/api/patch/github.com/odpi/egeria/7251.diff -o lift-autofixes.diff

# Apply the patch with git
git apply lift-autofixes.diff

# Review the changes
git diff

Want it all in a single command? Open a terminal in your project's directory and copy and paste the following command:

curl https://lift.sonatype.com/api/patch/github.com/odpi/egeria/7251.diff | git apply

Once you're satisfied commit and push your changes in your project.

Footnotes

  1. You can preview the patch by opening the patch URL in the browser.

@lpalashevski lpalashevski merged commit c39f979 into odpi:main Jan 25, 2023
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.

None yet

4 participants