Skip to content

Commit

Permalink
Import: add handling of new class modifiers: record and sealed
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatan-kazmierczak committed Oct 31, 2020
1 parent 779a7dd commit 50e483e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/clsvis/model/ElementModifier.java
Expand Up @@ -30,14 +30,17 @@ public enum ElementModifier {
Interface,
Enum, // TODO: should be presented as "enumeration"
Annotation,
Record,
Sealed,
Throwable,
LocalClass,
MemberClass,
Synthetic,
Bridge,
Default,
Implicit,
VarArgs,;
VarArgs,
;

public static final Set<ElementModifier> visibilityModifiers = Collections.unmodifiableSet( EnumSet.of(
ElementModifier.Private, ElementModifier.Protected, ElementModifier.Public ) );
Expand Down
Expand Up @@ -68,6 +68,7 @@ public class CompiledClassImporter {
ElementModifier.Static, ElementModifier.Final ) );
private static final Set<ElementModifier> classModifiers = Collections.unmodifiableSet( EnumSet.of(
ElementModifier.Interface, ElementModifier.Enum, ElementModifier.Annotation,
ElementModifier.Record, ElementModifier.Sealed,
ElementModifier.LocalClass, ElementModifier.MemberClass,
ElementModifier.Synthetic ) );
public static final Set<ElementModifier> fieldModifiers = Collections.unmodifiableSet( EnumSet.of(
Expand Down

0 comments on commit 50e483e

Please sign in to comment.