Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix getClass on enum classes #28985

Merged
merged 2 commits into from
May 8, 2024
Merged

Fix getClass on enum classes #28985

merged 2 commits into from
May 8, 2024

Commits on May 8, 2024

  1. Fix getClass on enum classes

    Enum constants may be implemented as subclasses, so getClass may be
    unreliable, e.g. a subclass returns `false` from `isEnum`. This commit
    fixes a bunch of places where the invalid class was exposed.
    mlopatkin authored and bamboo committed May 8, 2024
    Configuration menu
    Copy the full SHA
    c8b24a7 View commit details
    Browse the repository at this point in the history
  2. Clean up IDEA warnings

    mlopatkin authored and bamboo committed May 8, 2024
    Configuration menu
    Copy the full SHA
    ae3912d View commit details
    Browse the repository at this point in the history