GeezerVison is showing github.com — [core] Update remaining properties to use PropertyFactory by oowekyala · Pull Request #2450 · pmd/pmd
Conversation
oowekyala
commented
Apr 27, 2020
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Describe the PR
- Remove most remaining usages of old properties (eg BooleanProperty, StringProperty) to use PropertyFactory. These are stuck on master because they're public.
- In some cases, when the properties were deprecated, remove them.
- Some of the old properties are still there, when they use a null default value. This is something the new property framework disallows explicitly. Such properties should be converted to use an Optional value, but the framework doesn't support that yet. We can update them when the framework is refactored.
- This also extracts something from the rule AvoidDuplicateLiterals: delimiter escaping in multi-valued properties. I don't think we need to completely remove delimiter logic, if anything, this enables backwards compatibility with the current framework. Keeping it also allows specifying some list values more concisely.
Related issues
#1432
Ready?
- Added unit tests for fixed bug/feature
- Passing all unit tests
- Complete build
./mvnw clean verify passes (checked automatically by travis)
- Added (in-code) documentation (if needed)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
1 Message
|
| 📖 |
No java rules are changed! |
Generated by 🚫 Danger
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
I'm also going to merge this as it blocks #1432
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
// What? TODO 7.0.0 Use a boolean property
|
|
|
public static final StringProperty COLOR = new StringProperty("color",
|
|
|
"Enables colors with anything other than 'false' or '0'.", "yes", 0);
|
|
|
// TODO should the "textcolor" renderer really support "optional" colors?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On first glance, I'd say, we should remove this property, also the system property. I've added a task to #2524
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Jan 10, 2023
Reviewers
adangel
adangel left review comments
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Development
Successfully merging this pull request may close these issues.
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.
|