Skip to content

[improve][build] Fix rawtypes and unchecked compile warnings - #25417

Merged
merlimat merged 8 commits into
apache:masterfrom
merlimat:fix-compile-warnings-4
Mar 28, 2026
Merged

merlimat merged 8 commits into
apache:masterfrom
merlimat:fix-compile-warnings-4

Conversation

@merlimat

Copy link
Copy Markdown
Contributor

Summary

  • Add proper generic type parameters to raw types (Class, Map, List, CompletableFuture, Schema, etc.) across all modules
  • Add @SuppressWarnings("unchecked") for unavoidable casts (type erasure, reflective operations, generic array creation, external API constraints)
  • Add @SuppressWarnings("rawtypes") where raw types are required by external APIs (BookKeeper AbstractConfiguration, TestNG interfaces, AtomicReferenceFieldUpdater)
  • Parameterize ProducerInterceptor/ProducerInterceptorWrapper generics
  • Fix MetadataStore/MetadataCacheConfig generic signatures consistently

Documentation

  • doc-required
  • doc-not-needed
  • doc
  • doc-complete

Matching PR in forked repositories

  • Matching PR in forked repository

This PR is part of a series to fix all compile warnings in production code.

@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Mar 27, 2026
@merlimat
merlimat force-pushed the fix-compile-warnings-4 branch from 539b9f3 to ebbdf05 Compare March 27, 2026 20:52
@merlimat
merlimat force-pushed the fix-compile-warnings-4 branch from ebbdf05 to db603e1 Compare March 27, 2026 21:10
# Conflicts:
#	pulsar-client/src/main/java/org/apache/pulsar/client/impl/MessageImpl.java
#	pulsar-functions/localrun/src/main/java/org/apache/pulsar/functions/LocalRunner.java
#	pulsar-websocket/src/main/java/org/apache/pulsar/websocket/ProducerHandler.java
# Conflicts:
#	pulsar-broker/src/main/java/org/apache/pulsar/broker/ManagedLedgerClientFactory.java
#	pulsar-proxy/src/main/java/org/apache/pulsar/proxy/extensions/ProxyExtensionsUtils.java
@merlimat
merlimat merged commit c3ba269 into apache:master Mar 28, 2026
80 of 82 checks passed
@merlimat
merlimat deleted the fix-compile-warnings-4 branch March 28, 2026 15:37
@lhotari lhotari added this to the 5.0.0-M1 milestone Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs ready-to-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants