Skip to content

chore(jdk-codemodel): delegate visitTypeCast to resolveTypeUsage helper#15

Merged
deer merged 1 commit intomainfrom
typecast_cleanup
Apr 9, 2026
Merged

chore(jdk-codemodel): delegate visitTypeCast to resolveTypeUsage helper#15
deer merged 1 commit intomainfrom
typecast_cleanup

Conversation

@deer
Copy link
Copy Markdown
Collaborator

@deer deer commented Apr 9, 2026

visitTypeCast had an inline copy of the null/error-kind TypeMirror checking logic already centralized in resolveTypeUsage(Tree). Replaces the 25-line duplicate with a single resolveTypeUsage(t.getType()) call, consistent with visitInstanceOf, visitNewArray, visitNewClass, and all other type-resolving visitors.

No behavior change. Existing shouldCaptureCastTargetType test continues to pass.

@deer deer merged commit 8b31640 into main Apr 9, 2026
1 check passed
@deer deer deleted the typecast_cleanup branch April 9, 2026 11:40
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.

1 participant