Skip to content

[improve][build] Fix compile warnings in production code - #25414

Merged
merlimat merged 1 commit into
apache:masterfrom
merlimat:fix-compile-warnings-1
Mar 27, 2026
Merged

merlimat merged 1 commit into
apache:masterfrom
merlimat:fix-compile-warnings-1

Conversation

@merlimat

Copy link
Copy Markdown
Contributor

Summary

  • Remove 11 redundant casts (Object, int, long, Position, KeyValue, X509Certificate[])
  • Add serialVersionUID to 62 Serializable classes missing it
  • Replace deprecated AccessController.doPrivileged with direct calls (4 locations)
  • Remove deprecated SecurityManager check in DnsResolverUtil
  • Fix 6 static method access warnings to use class references instead of instances
  • Fix fallthrough comment format in ManagedLedgerImpl switch statement

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
- Remove 11 redundant casts (Object, int, long, Position, KeyValue, X509Certificate[])
- Add serialVersionUID to 62 Serializable classes missing it
- Replace deprecated AccessController.doPrivileged with direct calls (4 locations)
- Remove deprecated SecurityManager check in DnsResolverUtil
- Fix 6 static method access warnings to use class references instead of instances
- Fix fallthrough comment format in ManagedLedgerImpl switch statement
@merlimat
merlimat force-pushed the fix-compile-warnings-1 branch from bbaf3e1 to d7155d8 Compare March 27, 2026 20:52
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