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

Support generics in WebTargetHelper (BREAKING API CHANGES) #571

Merged
merged 1 commit into from
May 29, 2021

Conversation

sleberknight
Copy link
Member

  • Replace queryParams(Map) with queryParamsFromMap
  • Replace queryParams(MultivaluedMap) with queryParamsFromMultivaluedMap
  • Make both of the above methods accept a map with String keys and
    values of type V
  • Re-organize tests in WebTargetHelperTest; since the two methods now
    have distinct names, move each nested test class to the top level
    and rename accordingly.
  • Wrote lots of implementation notes and other code comments explaining
    why the methods are now named differently, and also why I had to
    insert that nasty cast in the queryParamsFromMultivaluedMap method.

Closes #570

* Replace queryParams(Map) with queryParamsFromMap
* Replace queryParams(MultivaluedMap) with queryParamsFromMultivaluedMap
* Make both of the above methods accept a map with String keys and
  values of type V
* Re-organize tests in WebTargetHelperTest; since the two methods now
  have distinct names, move each nested test class to the top level
  and rename accordingly.
* Wrote lots of implementation notes and other code comments explaining
  why the methods are now named differently, and also why I had to
  insert that nasty cast in the queryParamsFromMultivaluedMap method.

Closes #570
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@sleberknight sleberknight merged commit 9f6babb into master May 29, 2021
@sleberknight sleberknight deleted the 570-support-generics-in-WebTargetHelper branch May 29, 2021 16:30
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.

WebTargetHelper#queryParams does not handle generic Map and MultivaluedMap
2 participants