Repository navigation
[java] Fix #6460: Fix false negative for overridden methods in PublicMemberInNonPublicType - #6796
Conversation
|
Compared to main: (comment created at 2026-06-22 16:30:22+00:00 for f631994) |
|
regression tester report is larger than expected. I'll look into it. |
…ers.
Example:
class Wrong {
public int field = 0;
^^^^^^^^^ old version would violate this part
^^^^^ new version only violates this part
}
|
Ok, I had a look. All the 1182 changed violations seem to stem from the fact that the new implementation shortens the violation for fields with initializers. Example: class Wrong {
public int field = 0;
^^^^^^^^^ old version would violate this part
^^^^^ new version only violates this part
}That wasn't intentional, but I'd argue it's a good change. The new violations AFAICT are all as described in the PR description, so they are expected. |
Describe the PR
This PR...
Related issues
Ready?
./mvnw clean verifypasses (checked automatically by github actions)