Skip to content

[visualforce] Replace uses of Jorje types in pmd-visualforce#4226

Merged
adangel merged 4 commits into
pmd:masterfrom
aaronhurst-google:feature/replace-jorje-for-visualforce
Nov 25, 2022
Merged

[visualforce] Replace uses of Jorje types in pmd-visualforce#4226
adangel merged 4 commits into
pmd:masterfrom
aaronhurst-google:feature/replace-jorje-for-visualforce

Conversation

@aaronhurst-google

Copy link
Copy Markdown
Contributor

Store and compare primitive type names as Strings instead of using Jorje BasicType enum.
Rewrote some logic using PMD AST instead of raw Jorje nodes.

There ought to be no change in behavior.
Update unit tests and add a few more cases.

In furtherance of: #3766

Summary: store and compare primitive type names instead of using BasicType enum.

Udpate unit tests and add a few more cases.

Change-Id: If4e5bb33d11793813839b82cf8beb043aad2ce34
Comment thread pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/DataType.java Outdated
@ghost

ghost commented Nov 22, 2022

Copy link
Copy Markdown
1 Message
📖 No regression tested rules have been changed.

Generated by 🚫 Danger

@aaronhurst-google aaronhurst-google changed the title Replace uses of Jorje types in pmd-visualforce [visualforce] Replace uses of Jorje types in pmd-visualforce Nov 22, 2022
Change-Id: I3499dc615262612b6c220b7840d3ab8cca87c226
@aaronhurst-google aaronhurst-google force-pushed the feature/replace-jorje-for-visualforce branch from b93d8a6 to c9e21cd Compare November 22, 2022 21:38

@adangel adangel 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.

Thanks.
I think, we should keep the method that takes Jorje's BasicType but deprecated it (for the holy compatibility reason).

Isolate references to BasicType inside method implementation.

Change-Id: I4be2ad5b8b42fb7a84da0755106d8f0b08034690
Change-Id: I0aa6ecfeb343f2e0b48d2ebfd176a877a72f40f6

@adangel adangel 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.

Thanks!

@adangel adangel added this to the 6.52.0 milestone Nov 25, 2022
adangel added a commit that referenced this pull request Nov 25, 2022
adangel added a commit that referenced this pull request Nov 25, 2022
…-for-visualforce

[visualforce] Replace uses of Jorje types in pmd-visualforce #4226
@adangel adangel merged commit 1029d6b into pmd:master Nov 25, 2022
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.

2 participants