Skip to content

Merge semver to dev#504

Merged
mmelograno merged 47 commits intodevelopmentfrom
Feature/Semver
May 15, 2024
Merged

Merge semver to dev#504
mmelograno merged 47 commits intodevelopmentfrom
Feature/Semver

Conversation

@chillaq
Copy link
Copy Markdown
Contributor

@chillaq chillaq commented May 3, 2024

No description provided.

@chillaq chillaq requested a review from a team as a code owner May 3, 2024 19:29
@sonarqube-pull-requests
Copy link
Copy Markdown

Comment thread client/src/main/java/io/split/engine/matchers/BetweenSemverMatcher.java Outdated
Comment thread client/src/main/java/io/split/engine/matchers/EqualToSemverMatcher.java Outdated
Comment thread client/src/main/java/io/split/engine/matchers/InListSemverMatcher.java Outdated
Comment thread client/src/main/java/io/split/engine/matchers/InListSemverMatcher.java Outdated
Comment thread client/src/main/java/io/split/engine/matchers/LessThanOrEqualToSemverMatcher.java Outdated
Comment thread client/src/main/java/io/split/engine/matchers/Semver.java Outdated
Comment thread client/src/main/java/io/split/engine/matchers/Semver.java Outdated
hpark-miovision and others added 6 commits May 8, 2024 22:05
RawAuthResponse constructor first checks to ensure provided token is not null and is not empty. Existing implementation used != operator to detect non-empty string, thus failed to handle when provided token is actually empty, i.e. "".

The token comparison logic in RawAuthResponse constructor is now updated to use isEmpty() instead, more specifically, (token != null && !token.isEmpty()) to properly handle "" case.

New test case with sample json has been added for validation; the test prior to the change would fail with java.lang.ArrayIndexOutOfBoundsException.
…h_empty_token

Fix empty token handling in RawAuthResponse constructor
@sonarqube-pull-requests
Copy link
Copy Markdown

@mmelograno mmelograno merged commit 426ea5a into development May 15, 2024
@chillaq chillaq deleted the Feature/Semver branch June 30, 2025 15:20
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.

5 participants