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: correct parsing of nested sealed classes #523

Merged
merged 1 commit into from
Jan 6, 2022

Conversation

clementdessoude
Copy link
Contributor

What changed with this PR:

Fix parsing of nested sealed and non-sealed classes

Example

// Input
package nl.jqno.equalsverifier.integration.extended_contract;

public class SealedClasses {
    public static sealed abstract class SealedParent permits SealedChild {}

    final static class SealedChild extends SealedParent {}
}

// Output
public class NestedSealedClasses {

  public abstract static sealed class SealedParent permits SealedChild {}

  static final class SealedChild extends SealedParent {}
}

Relative issues or prs:

Fix #522

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.

Sad sad panda error with nested sealed classes
1 participant