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

Feature/cleanup #642

Merged
merged 6 commits into from
Jan 26, 2023
Merged

Feature/cleanup #642

merged 6 commits into from
Jan 26, 2023

Conversation

CodeDead
Copy link
Contributor

@CodeDead CodeDead commented Nov 25, 2022

Changes

  • GIT compliance for some files (missing new line)
  • Simpler HashMap declaration in code
  • Replaced usage of deprecated JsonMapper methods
  • Removed unneeded null check when using instanceof (because if the value is null, it will return false in the instanceof check)
  • Removed unused imports

References

None.

Testing

  • This change adds test coverage
  • This change has been tested on the latest version of Java

Checklist

@CodeDead CodeDead requested a review from a team as a code owner November 25, 2022 21:44
Copy link
Contributor

@jimmyjames jimmyjames left a comment

Choose a reason for hiding this comment

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

🎉

@jimmyjames jimmyjames merged commit 6e80ea1 into auth0:master Jan 26, 2023
@CodeDead CodeDead deleted the feature/cleanup branch January 31, 2023 13:22
@jimmyjames jimmyjames mentioned this pull request Feb 10, 2023
@jdubjdub
Copy link

jdubjdub commented Apr 19, 2023

this JsonMapper builder pattern usage (instead of the deprecated configure method) breaks anyone using jackson prior to 2.13 :(

@CodeDead
Copy link
Contributor Author

this JsonMapper builder pattern usage (instead of the deprecated configure method) breaks anyone using jackson prior to 2.10 :(

Any reason to continue using 4+ year old dependencies? Why not upgrade?

@jdubjdub
Copy link

enterprise software :D

@CodeDead
Copy link
Contributor Author

CodeDead commented Apr 19, 2023

enterprise software :D

In that case, why not use an older version of java-jwt as well? Why upgrade one but not the other dependencies?

Can't really expect current and up-to-date software not to keep up with the times. But, fortunately, the older versions of java-jwt are still available on mavenCentral.

@jdubjdub
Copy link

that's what i'm doing, but this seems like a fairly aggressive upgrade, understanding that the mapper.configure method was only actually deprecated as of jackson 2.13

@CodeDead
Copy link
Contributor Author

CodeDead commented Apr 19, 2023

that's what i'm doing, but this seems like a fairly aggressive upgrade, understanding that the mapper.configure method was only actually deprecated as of jackson 2.13

Jackson 2.13 is 2 years old and even the JDK release schedule is on a 6 month basis. Spring updates and deprecates and removes methods with almost every release, which also happens every 6 months.

Not really sure why this would be considered fairly aggressive or even problematic since you can continue to use older versions of the library until you upgrade the required dependencies.

Other tools, frameworks and libraries are much more maintenance heavy when compared to java-jwt, including the JDK itself.

Waiting 1 or 2 years to replace a deprecated method is fairly acceptable in my opinion for a library that is updated on a continuous basis (#657)

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.

3 participants