From 807dd69000efc8a5d8042a064623244ebe112809 Mon Sep 17 00:00:00 2001 From: Knut Wannheden Date: Wed, 6 Sep 2023 21:34:32 +0200 Subject: [PATCH] Add `Sealed` and `NonSealed` flags Kotlin also has sealed types. --- .../src/main/java/org/openrewrite/java/tree/Flag.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rewrite-java/src/main/java/org/openrewrite/java/tree/Flag.java b/rewrite-java/src/main/java/org/openrewrite/java/tree/Flag.java index 7a65b97dbbe..8a177eccb01 100644 --- a/rewrite-java/src/main/java/org/openrewrite/java/tree/Flag.java +++ b/rewrite-java/src/main/java/org/openrewrite/java/tree/Flag.java @@ -42,7 +42,9 @@ public enum Flag { Union(1L << 39), Default(1L << 43), SignaturePolymorphic(1L << 46), - PotentiallyAmbiguous(1L << 48); + PotentiallyAmbiguous(1L << 48), + Sealed(1L << 62), + NonSealed(1L << 63); private final long bitMask;