Skip to content

Small code maintainability changes #109

Merged
danny-gallagher merged 3 commits intoMastercard:mainfrom
fyf4067:main
Mar 19, 2025
Merged

Small code maintainability changes #109
danny-gallagher merged 3 commits intoMastercard:mainfrom
fyf4067:main

Conversation

@fyf4067
Copy link
Copy Markdown
Contributor

@fyf4067 fyf4067 commented Mar 9, 2025

PR checklist

  • An issue/feature request has been created for this PR
  • Pull Request title clearly describes the work in the pull request and the Pull Request description provides details about how to validate the work. Missing information here may result in a delayed response.
  • File the PR against the main branch
  • The code in this PR is covered by unit tests

Link to issue/feature request: add the link here

Description

Removed some unnecessary unboxing on getIVSize() method in JweConfigBuilderTest and FieldLevelEncryptionConfigBuilderTest classes and changed StringUtils class improving readability

fyf4067 added 3 commits March 9, 2025 14:14
changing str.length() == 0 to str.isEmpty()
remove unnecessary unboxing (IntValue) since hamcrest can handle Integer to Int comparison automatically
removed unnecessary method .intValue() on getIVSize()
@danny-gallagher danny-gallagher added the safe The PR has been reviewed by Mastercard and has been validated to be safe label Mar 19, 2025
Copy link
Copy Markdown
Contributor

@danny-gallagher danny-gallagher left a comment

Choose a reason for hiding this comment

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

LGTM

@danny-gallagher danny-gallagher merged commit c2d02ed into Mastercard:main Mar 19, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe The PR has been reviewed by Mastercard and has been validated to be safe

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants