From a58e0803fbcac9fdff286458833a217475d6f4dc Mon Sep 17 00:00:00 2001 From: Jinseong Jeon Date: Fri, 23 Sep 2022 00:09:03 -0700 Subject: [PATCH] ULC: output update (annotation on enum entry) Input has `// CHECK_BY_JAVA_FILE` and thus ULC output as .java file should be updated too when input was changed to add annotation on enum entry (at commit c5916e1d) Tested by UltraLightClassLoadingTestGenerated in IntelliJ --- .../asJava/ultraLightClasses/enums.java | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/compiler/testData/asJava/ultraLightClasses/enums.java b/compiler/testData/asJava/ultraLightClasses/enums.java index 73cc8721af0..58d6a62905a 100644 --- a/compiler/testData/asJava/ultraLightClasses/enums.java +++ b/compiler/testData/asJava/ultraLightClasses/enums.java @@ -3,7 +3,7 @@ public abstract @interface Some /* Some*/ { } public enum Direction /* Direction*/ { - NORTH, + @Some() NORTH, SOUTH, WEST, EAST; @@ -41,14 +41,14 @@ public enum Color /* Color*/ { public enum ProtocolState /* ProtocolState*/ { WAITING { - WAITING();// .ctor() + WAITING();// .ctor() @org.jetbrains.annotations.NotNull() public ProtocolState signal();// signal() }, TALKING { - TALKING();// .ctor() + TALKING();// .ctor() @org.jetbrains.annotations.NotNull() public ProtocolState signal();// signal() @@ -70,12 +70,12 @@ public enum ProtocolState /* ProtocolState*/ { class TALKING ... - class WAITING ... + class WAITING ... -} + } public static final class WAITING /* ProtocolState.WAITING*/ extends ProtocolState { - WAITING();// .ctor() + WAITING();// .ctor() @org.jetbrains.annotations.NotNull() public ProtocolState signal();// signal() @@ -83,7 +83,7 @@ public static final class WAITING /* ProtocolState.WAITING*/ extends ProtocolSta } public static final class TALKING /* ProtocolState.TALKING*/ extends ProtocolState { - TALKING();// .ctor() + TALKING();// .ctor() @org.jetbrains.annotations.NotNull() public ProtocolState signal();// signal() @@ -92,14 +92,14 @@ public static final class TALKING /* ProtocolState.TALKING*/ extends ProtocolSta public enum IntArithmetics /* IntArithmetics*/ implements java.util.function.BinaryOperator, java.util.function.IntBinaryOperator { PLUS { - PLUS();// .ctor() + PLUS();// .ctor() @org.jetbrains.annotations.NotNull() public java.lang.Integer apply(int, int);// apply(int, int) }, TIMES { - TIMES();// .ctor() + TIMES();// .ctor() @org.jetbrains.annotations.NotNull() public java.lang.Integer apply(int, int);// apply(int, int) @@ -120,12 +120,12 @@ public enum IntArithmetics /* IntArithmetics*/ implements java.util.function.Bin class PLUS ... - class TIMES ... + class TIMES ... -} + } public static final class PLUS /* IntArithmetics.PLUS*/ extends IntArithmetics { - PLUS();// .ctor() + PLUS();// .ctor() @org.jetbrains.annotations.NotNull() public java.lang.Integer apply(int, int);// apply(int, int) @@ -133,7 +133,7 @@ public static final class PLUS /* IntArithmetics.PLUS*/ extends IntArithmetics { } public static final class TIMES /* IntArithmetics.TIMES*/ extends IntArithmetics { - TIMES();// .ctor() + TIMES();// .ctor() @org.jetbrains.annotations.NotNull() public java.lang.Integer apply(int, int);// apply(int, int)