Skip to content

[apex] Implement ApexQualifiableNode for ASTUserEnum#4092

Merged
adangel merged 1 commit into
pmd:masterfrom
aaronhurst-google:enum-qualified-names
Aug 24, 2022
Merged

[apex] Implement ApexQualifiableNode for ASTUserEnum#4092
adangel merged 1 commit into
pmd:masterfrom
aaronhurst-google:enum-qualified-names

Conversation

@aaronhurst-google

Copy link
Copy Markdown
Contributor

Include enum in qualified name. Properly handle case where enum is root node.

Fixes null deref in ApexQualifiedName.toString() for built-in ASTMethods in enum types.
Reference: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_enum.htm

Add tests of qualified and unqualified enums. (The former reproduced the null deref.)

Include enum in qualified name. Properly handle case where enum is root node.

Fixes null deref in ApexQualifiedName.toString() for built-in ASTMethods in enum types.
Reference: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_enum.htm

Add tests of qualified and unqualified enums.

Change-Id: I691795d40a66f3d3335ab72ad43de7055a6aee31
@aaronhurst-google aaronhurst-google changed the title Implement ApexQualifiableNode for ASTUserEnum. [Apex] Implement ApexQualifiableNode for ASTUserEnum. Aug 12, 2022
@aaronhurst-google aaronhurst-google changed the title [Apex] Implement ApexQualifiableNode for ASTUserEnum. [apex] Implement ApexQualifiableNode for ASTUserEnum. Aug 12, 2022

@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 changed the title [apex] Implement ApexQualifiableNode for ASTUserEnum. [apex] Implement ApexQualifiableNode for ASTUserEnum Aug 24, 2022
@adangel adangel added this to the 6.49.0 milestone Aug 24, 2022
@adangel adangel merged commit fbeb071 into pmd:master Aug 24, 2022
adangel added a commit to adangel/pmd that referenced this pull request Aug 24, 2022
adangel added a commit to adangel/pmd that referenced this pull request Aug 24, 2022
[apex] Implement ApexQualifiableNode for ASTUserEnum pmd#4092
@ghost

ghost commented Aug 24, 2022

Copy link
Copy Markdown
1 Message
📖 Compared to master:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report

Generated by 🚫 Danger

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