Skip to content

Ignore the receiver in missed obfuscation - #1478

Open
gemshrine wants to merge 1 commit into
objectionary:masterfrom
gemshrine:fix/1461-ignore-rho-void
Open

gemshrine wants to merge 1 commit into
objectionary:masterfrom
gemshrine:fix/1461-ignore-rho-void

Conversation

@gemshrine

Copy link
Copy Markdown
Contributor

Closes #1461

Problem

The missed-obfuscation rule treats the receiver ρ as a void that must be reported. A receiver is an implicit part of an object access, not an unused user-defined void, so valid code is reported as a defect.

Solution

The rule now excludes ρ from the set of voids considered for missed obfuscation. A regression fixture covers receiver access and keeps the existing checks for actual unused voids.

Verification

  • Added the allows-rho-void fixture.
  • mvn test was started and exercised the complete fixture suite before being stopped due to its long-running full-suite duration.

This branch has not been deployed

No deployments
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.

missed-obfuscation incorrectly counts receiver ρ as a void leading to spurious defect reports

1 participant