Skip to content

fix: Re-enable -Werror and fix all compile warnings (#2717)#3254

Open
adhnanjeff wants to merge 1 commit intoAutoMQ:mainfrom
adhnanjeff:fix/issue-2717-enable-werror-fix-warnings
Open

fix: Re-enable -Werror and fix all compile warnings (#2717)#3254
adhnanjeff wants to merge 1 commit intoAutoMQ:mainfrom
adhnanjeff:fix/issue-2717-enable-werror-fix-warnings

Conversation

@adhnanjeff
Copy link
Copy Markdown

  • Re-enabled -Werror flag in build.gradle to treat warnings as errors
  • Fixed [deprecation] warnings for getIssuerDN()/getSubjectDN() with @SuppressWarnings
  • Fixed [removal] warnings for AccessController/Subject.getSubject() with @SuppressWarnings
  • Fixed [this-escape] warnings in constructors with @SuppressWarnings

All Java source and test compilation now passes cleanly with -Werror enabled. All suppressions use minimal scope (method-level, not class-level).

Fixes #2717

More detailed description of your change,
if necessary. The PR title and PR message become
the squashed commit message, so use a separate
comment to ping reviewers.

Summary of testing strategy (including rationale)
for the feature or bug fix. Unit and/or integration
tests are expected for any behaviour change and
system tests should be considered for larger changes.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@adhnanjeff adhnanjeff force-pushed the fix/issue-2717-enable-werror-fix-warnings branch from b55be03 to bf7654f Compare March 24, 2026 08:14
- Re-enabled -Werror flag in build.gradle to treat warnings as errors
- Fixed [deprecation] warnings for getIssuerDN()/getSubjectDN() with @SuppressWarnings
- Fixed [removal] warnings for AccessController/Subject.getSubject() with @SuppressWarnings
- Fixed [this-escape] warnings in constructors with @SuppressWarnings

All Java source and test compilation now passes cleanly with -Werror enabled.
All suppressions use minimal scope (method-level, not class-level).

Fixes AutoMQ#2717
@adhnanjeff adhnanjeff force-pushed the fix/issue-2717-enable-werror-fix-warnings branch from bf7654f to 2037717 Compare March 24, 2026 08:15
@adhnanjeff adhnanjeff changed the title Re-enable -Werror and fix all compile warnings (#2717) fix: Re-enable -Werror and fix all compile warnings (#2717) Mar 24, 2026
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.

adjust build config: bump minJavaVersion and fix compile warnings

1 participant