Skip to content

[core] Properties refactoring: Move static constants of ValueParser to class ValueParserConstants#587

Merged
jsotuyod merged 2 commits into
pmd:masterfrom
oowekyala:typesafe-properties
Sep 12, 2017
Merged

[core] Properties refactoring: Move static constants of ValueParser to class ValueParserConstants#587
jsotuyod merged 2 commits into
pmd:masterfrom
oowekyala:typesafe-properties

Conversation

@oowekyala

Copy link
Copy Markdown
Member

Before submitting a PR, please check that:

  • The PR is submitted against master. The PMD team will merge back to support branches as needed.
  • mvn test passes.
  • mvn checkstyle:check passes. Check this for more info

PR Description: Checks item 2 of #504

@adangel adangel added the an:enhancement An improvement on existing features / rules label Aug 31, 2017
@jsotuyod jsotuyod added this to the 6.0.0 milestone Sep 4, 2017
@adangel adangel self-assigned this Sep 8, 2017

@jsotuyod jsotuyod left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I didn't look into this earlier!

* @since 6.0.0
*/
//TODO: make package-private when we move everything to n.s.pmd.properties
public final class ValueParsers {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea of moving these out, but I believe we need a different name.

In general, it's a a code smell to have classes differing on a single char, specially plurals

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe ValueParserConstants then ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good name!

@jsotuyod jsotuyod self-assigned this Sep 12, 2017
@jsotuyod jsotuyod changed the title [core] Properties refactoring: Move static constants of ValueParser to class ValueParsers [core] Properties refactoring: Move static constants of ValueParser to class ValueParserConstants Sep 12, 2017
@jsotuyod jsotuyod merged commit 732af08 into pmd:master Sep 12, 2017
jsotuyod added a commit that referenced this pull request Sep 12, 2017
@jsotuyod

Copy link
Copy Markdown
Member

Very late, but finally merged! Thanks!

@oowekyala oowekyala deleted the typesafe-properties branch September 12, 2017 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

an:enhancement An improvement on existing features / rules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants