GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [visualforce] Replace uses of Jorje types in pmd-visualforce by aaronhurst-google · Pull Request #4226 · pmd/pmd

Conversation

@aaronhurst-google

@aaronhurst-google aaronhurst-google commented Nov 22, 2022

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@aaronhurst-google
Replace uses of Jorje types in pmd-visualforce.
5ad37f6
Summary: store and compare primitive type names instead of using BasicType enum.

Udpate unit tests and add a few more cases.

Change-Id: If4e5bb33d11793813839b82cf8beb043aad2ce34
aaronhurst-google
aaronhurst-google commented Nov 22, 2022
View reviewed changes
Comment thread pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/DataType.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@ghost

ghost commented Nov 22, 2022

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

Generated by 🚫 Danger

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@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
@aaronhurst-google
Tweak terminology: the map is case-normalized not case-insensitive.
c9e21cd
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 reviewed Nov 24, 2022
View reviewed changes

@adangel adangel left a comment

Copy link
Copy Markdown
Member

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.

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/DataType.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/DataType.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

aaronhurst-google added 2 commits November 24, 2022 15:55
@aaronhurst-google
Add back DataType.fromBasicType(BasicType) and test.
e62b71f
Isolate references to BasicType inside method implementation.

Change-Id: I4be2ad5b8b42fb7a84da0755106d8f0b08034690
@aaronhurst-google
Fix checkstyle violations.
1029d6b
Change-Id: I0aa6ecfeb343f2e0b48d2ebfd176a877a72f40f6
@aaronhurst-google
aaronhurst-google requested a review from adangel November 24, 2022 21:12
adangel
adangel approved these changes Nov 25, 2022
View reviewed changes

@adangel adangel left a comment

Copy link
Copy Markdown
Member

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.

Thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@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
[doc] Update release notes (#4226)
3bd1283
adangel added a commit that referenced this pull request Nov 25, 2022
@adangel
Merge pull request #4226 from aaronhurst-google:feature/replace-jorje…
05a6daa
…-for-visualforce

[visualforce] Replace uses of Jorje types in pmd-visualforce #4226
@adangel
adangel merged commit 1029d6b into pmd:master Nov 25, 2022
This was referenced Jan 11, 2023
PMD 7 Miscellaneous Tasks #2524
Closed
[apex] AST cleanups #4311
Open
[apex] Replace Jorje with fully open source front-end #3766
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@adangel adangel adangel approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

6.52.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@aaronhurst-google @adangel
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.