diff --git a/src/main/java/spoon/reflect/code/CtCase.java b/src/main/java/spoon/reflect/code/CtCase.java index 8db80d292ec..9ce11e23a0d 100644 --- a/src/main/java/spoon/reflect/code/CtCase.java +++ b/src/main/java/spoon/reflect/code/CtCase.java @@ -38,7 +38,7 @@ public interface CtCase extends CtStatement, CtStatementList { CtExpression getCaseExpression(); /** - * Sets the case expression. + * Sets the case expression. If set with null, the CtCase will represent a default label. * Use {@link #setCaseExpressions(List)} since Java 12 */ @PropertySetter(role = EXPRESSION) @@ -52,7 +52,7 @@ public interface CtCase extends CtStatement, CtStatementList { List> getCaseExpressions(); /** - * Sets the case expressions. + * Sets the case expressions. If set with null or an empty list, the CtCase will represent a default label. * (Multiple case expressions are available as a preview feature since Java 12) */ @PropertySetter(role = EXPRESSION)