LC: rework modality of enum class
It is abstract if it has abstract member. It is final if it doesn't have enum entries that need subclass. Otherwise, it is open (i.e., no modifier) ^KT-57567 Fixed
This commit is contained in:
committed by
Ilya Kirillov
parent
7930885131
commit
7f1424737e
@@ -43,7 +43,7 @@ public enum Direction /* Direction*/ {
|
||||
private Direction();// .ctor()
|
||||
}
|
||||
|
||||
public enum IntArithmetics /* IntArithmetics*/ implements java.util.function.BinaryOperator<java.lang.Integer>, java.util.function.IntBinaryOperator {
|
||||
public abstract enum IntArithmetics /* IntArithmetics*/ implements java.util.function.BinaryOperator<java.lang.Integer>, java.util.function.IntBinaryOperator {
|
||||
PLUS {
|
||||
PLUS();// .ctor()
|
||||
|
||||
@@ -79,7 +79,7 @@ public static final class PLUS /* IntArithmetics.PLUS*/ extends IntArithmetics {
|
||||
public java.lang.Integer apply(int, int);// apply(int, int)
|
||||
}
|
||||
|
||||
public enum ProtocolState /* ProtocolState*/ {
|
||||
public abstract enum ProtocolState /* ProtocolState*/ {
|
||||
WAITING {
|
||||
WAITING();// .ctor()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user