Merged
Conversation
Member
oschwald
commented
Aug 27, 2025
- Remove deprecation notices from IP Risk database support
- Remove deprecated WebServiceClient methods
- Remove deprecated exception getUrl() methods
- Remove deprecated Traits constructors and methods
- Remove deprecated Location.getMetroCode() method
- Upgrade to Java 17 and modernize codebase
- Remove serialVersionUID from all exception classes
02ef4bf to
110aae4
Compare
The IP Risk database is being rebuilt and will continue to be maintained. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
* Remove deprecated Builder methods: connectTimeout(int), readTimeout(int), and proxy(Proxy) * Remove deprecated close() method and Closeable interface implementation * Use Duration-based and ProxySelector-based methods instead 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
* Remove deprecated getUrl() methods from HttpException and InvalidRequestException * Use getUri() method instead which returns URI objects 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
* Remove deprecated constructors that accepted additional parameters * Remove deprecated methods isAnonymousProxy() and isSatelliteProvider() * Remove associated private fields and parameter documentation * Update copy constructor to work without removed fields Use the GeoIP2 Anonymous IP database for anonymous proxy detection instead. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
* Remove deprecated getMetroCode() method and associated field * Remove metroCode parameter from constructors and documentation * Metro code values are no longer maintained by MaxMind 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
* Update pom.xml to require Java 17 * Update GitHub Actions to test on Java 17, 21, 22, 23 (drop Java 11) * Modernize code with Java 17 features: - Convert switch statement to switch expression in ConnectionTypeResponse - Replace Collections.singletonList() with List.of() - Replace defensive ArrayList copy with List.copyOf() * Remove unused imports (Collections, ArrayList) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Exception serialization is rarely needed in client libraries and explicit serialVersionUID creates maintenance burden. Let Java auto-generate appropriate values when serialization is actually needed. This follows modern Java practices where most standard library exceptions also don't include explicit serialVersionUID values. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
110aae4 to
802a5dc
Compare
horgh
requested changes
Aug 29, 2025
.github/workflows/test.yml
Outdated
| distribution: ['zulu'] | ||
| os: [ubuntu-latest, windows-latest, macos-latest] | ||
| version: [ 11, 17, 21, 22 ] | ||
| version: [ 17, 21, 22, 23 ] |
Contributor
There was a problem hiding this comment.
Should this list match the reader package? That one made more sense to me. If it changes, we should update the changelog too.
CHANGELOG.md
Outdated
| * **BREAKING:** Java 11 support has been dropped. Java 17 or later is now required. | ||
| * Updated project to use Java 17 language features including switch expressions | ||
| and modern collection factories. | ||
| * Updated GitHub Actions workflow to test on Java 17, 21, 22, and 23. |
Contributor
There was a problem hiding this comment.
I merged it already, but I wonder if we'd want to mention the above 2 points in the reader changelog too.
Member
Author
There was a problem hiding this comment.
Yeah, I am not sure. I generally leave off internal-only changes that don't impact users, but Claude added these and I guess I didn't object.
Member
Author
There was a problem hiding this comment.
I removed them, but I am happy to add them to all three if you think they are helpful.
horgh
approved these changes
Aug 31, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.