Skip to content

Conversation

@copybara-service
Copy link
Contributor

Clean up VariableNameSameAsType

If JDK-8268850 is fixed, the VariableTree for inferred lambda parameter types may be null, which breaks assumptions in this check. Getting the Type from the VariableTree instead address that issue, and also simplifies this check a bit.

If JDK-8268850 is fixed, the `VariableTree` for inferred lambda parameter types may be `null`, which breaks assumptions in this check. Getting the `Type` from the `VariableTree` instead address that issue, and also simplifies this check a bit.

PiperOrigin-RevId: 860043086
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