Skip to content

Conversation

@louwers
Copy link
Member

@louwers louwers commented Nov 22, 2025

Closes #552

Copilot AI review requested due to automatic review settings November 22, 2025 12:05
@louwers louwers added the java Pull requests that update Java code label Nov 22, 2025
Copilot finished reviewing on behalf of louwers November 22, 2025 12:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses Java build warnings by replacing raw types with parameterized types and updating deprecated API usage. The changes eliminate the need for @SuppressWarnings annotations in the modified files.

  • Replaced raw Vector types with parameterized Vector<?, ?> wildcards in FeatureTable.java
  • Updated all FsstEncoder.decode() calls in StringDecoder.java to use the non-deprecated 4-parameter version
  • Added decompressedLength calculation as the sum of length values where needed

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
java/mlt-core/src/main/java/org/maplibre/mlt/vector/FeatureTable.java Replaced raw Vector types with Vector<?, ?> wildcards to eliminate rawtypes warnings
java/mlt-core/src/main/java/org/maplibre/mlt/decoder/StringDecoder.java Updated three deprecated FsstEncoder.decode() calls to use the non-deprecated 4-parameter version with explicit decompressed length

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Collaborator

@HarelM HarelM left a comment

Choose a reason for hiding this comment

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

Is it possible to add "treat warnings as errors" to avoid future additions to warnings?

@louwers
Copy link
Member Author

louwers commented Nov 22, 2025

@HarelM I think that is already the case, but these warnings where manually suppressed.

@louwers louwers merged commit 85e8084 into maplibre:main Nov 24, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

java Pull requests that update Java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cleanup java build issues

3 participants