Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

review: doc: add documentation for CtCase #4039

Merged
merged 6 commits into from
Jul 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/spoon/reflect/code/CtCase.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public interface CtCase<S> extends CtStatement, CtStatementList {
CtExpression<S> 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)
Expand All @@ -52,7 +52,7 @@ public interface CtCase<S> extends CtStatement, CtStatementList {
List<CtExpression<S>> 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)
Expand Down