GeezerVison is showing github.com — [java] ConstructorCallsOverridableMethod should consider method calls… by adangel · Pull Request #4101 · pmd/pmd
Conversation
adangel
commented
Aug 24, 2022
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
… with var access
The rule ConstructorCallsOverridableMethod now:
Ready?
- Added unit tests for fixed bug/feature
- Passing all unit tests
- Complete build
./mvnw clean verify passes (checked automatically by github actions)
- Added (in-code) documentation (if needed)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
ghost
commented
Aug 24, 2022
•
edited by ghost
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
1 Message
|
| 📖 |
Compared to master:
This changeset changes 25 violations,
introduces 82 new violations, 0 new errors and 0 new configuration errors,
removes 16 violations, 0 errors and 0 configuration errors.
Full report |
| ✅ |
Compared to master:
This changeset changes 25 violations,
introduces 82 new violations, 0 new errors and 0 new configuration errors,
removes 16 violations, 0 errors and 0 configuration errors.
Full report |
| ✅ |
Compared to master:
This changeset changes 25 violations,
introduces 82 new violations, 0 new errors and 0 new configuration errors,
removes 16 violations, 0 errors and 0 configuration errors.
Full report |
| ✅ |
Compared to master:
This changeset changes 6 violations,
introduces 82 new violations, 0 new errors and 0 new configuration errors,
removes 16 violations, 0 errors and 0 configuration errors.
Full report |
| ✅ |
Compared to master:
This changeset changes 6 violations,
introduces 78 new violations, 0 new errors and 0 new configuration errors,
removes 21 violations, 2 errors and 6 configuration errors.
Full report |
| ✅ |
Compared to master:
This changeset changes 5 violations,
introduces 60 new violations, 0 new errors and 0 new configuration errors,
removes 38 violations, 2 errors and 6 configuration errors.
Full report |
| ✅ |
Compared to master:
This changeset changes 2 violations,
introduces 28 new violations, 0 new errors and 0 new configuration errors,
removes 48 violations, 2 errors and 6 configuration errors.
Full report |
| ✅ |
Compared to master:
This changeset changes 0 violations,
introduces 20 new violations, 0 new errors and 0 new configuration errors,
removes 204 violations, 2 errors and 6 configuration errors.
Full report |
Generated by 🚫 Danger
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as outdated.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
- Use type of the method call result
- Do not consider super method calls,
but this references
- Identify method calls of generic methods
First method in the chain was missing
|
Ok, this is finally ready.
The rule now:
- finds method calls with parameters more reliably -> this adds new violations (fixes the false negative in [java] ConstructorCallsOverridableMethod should consider method calls with var access #4099)
- reports for indirect calls (method chains) the found call stack - allowing to understand the message better
- ignores method calls on super - there the problem that an unknown subclass would override the method isn't given. At the time you write the code, your superclass is known. The rule previously noticed some super method calls, but not all. Now all super method calls are ignored.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|