Skip to content

build(spotbugs): suppress CT_CONSTRUCTOR_THROW for three abstract class#821

Merged
mivek merged 2 commits into
mainfrom
fix/abstract-trend-constructor-throw
Jul 9, 2026
Merged

build(spotbugs): suppress CT_CONSTRUCTOR_THROW for three abstract class#821
mivek merged 2 commits into
mainfrom
fix/abstract-trend-constructor-throw

Conversation

@mivek

@mivek mivek commented Jul 9, 2026

Copy link
Copy Markdown
Owner

build(spotbugs): suppress CT_CONSTRUCTOR_THROW for three abstract cla…

…sses

Suppress CT_CONSTRUCTOR_THROW for AbstractWeatherContainerParser,
AbstractWeatherCodeParser, and AbstractTrend.

All three are abstract (non-final) classes, but the finalizer-attack
vector is not exploitable: no finalize() methods exist in the codebase,
all concrete subclasses are final, no security-sensitive state is
involved, and Java 21 deprecates finalization.

mivek added 2 commits July 9, 2026 10:28
…sses

Suppress CT_CONSTRUCTOR_THROW for AbstractWeatherContainerParser,
AbstractWeatherCodeParser, and AbstractTrend.

All three are abstract (non-final) classes, but the finalizer-attack
vector is not exploitable: no finalize() methods exist in the codebase,
all concrete subclasses are final, no security-sensitive state is
involved, and Java 21 deprecates finalization.

Revert 71fd80e restored Objects.requireNonNull in AbstractTrend as
good defensive practice; the suppression allows it without CI failure.
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

Please check on sonarcloud https://sonarcloud.io/project/pull_requests_list?id=io.github.mivek%3AmetarParser that the PR does not add any issue.

@sonarqubecloud

sonarqubecloud Bot commented Jul 9, 2026

Copy link
Copy Markdown

@mivek mivek merged commit b9cb609 into main Jul 9, 2026
9 checks passed
@mivek mivek deleted the fix/abstract-trend-constructor-throw branch July 9, 2026 20:30
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 3.0.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant