-
-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: attach comment to
CtLiteral
nodes (#4836)
- Loading branch information
1 parent
ae305c3
commit 6a95f50
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
public class CommentsOnCaseExpression { | ||
public void commentsShouldBeAttachedToCtLiteral(int stage) { | ||
String stageStr; | ||
boolean fullStatus; | ||
switch (stage) { | ||
// Inline comments are also a part now | ||
case (1/*org.apache.coyote.Constants.STAGE_PARSE*/): | ||
stageStr = "P"; | ||
fullStatus = false; | ||
break; | ||
case (2/*org.apache.coyote.Constants.STAGE_PREPARE*/): | ||
stageStr = "P"; | ||
fullStatus = false; | ||
break; | ||
case (3/*org.apache.coyote.Constants.STAGE_SERVICE*/): | ||
stageStr = "S"; | ||
break; | ||
} | ||
} | ||
} |