+3
-5
lines changedFilter options
+3
-5
lines changed Original file line number Diff line number Diff line change
@@ -19,7 +19,6 @@
19
19
20
20
import com.google.common.base.Verify;
21
21
import com.google.common.collect.ImmutableList;
22
-
import com.google.googlejavaformat.Indent;
23
22
import com.google.googlejavaformat.OpsBuilder;
24
23
import com.google.googlejavaformat.OpsBuilder.BlankLineWanted;
25
24
import com.google.googlejavaformat.java.JavaInputAstVisitor;
@@ -233,11 +232,10 @@ public Void visitCase(CaseTree node, Void unused) {
233
232
&& !node.getBody().getKind().equals(Tree.Kind.BLOCK)
234
233
? plusFour
235
234
: ZERO);
236
-
Indent commentIndent = node.getCaseKind().equals(CaseTree.CaseKind.RULE) ? ZERO : plusTwo;
237
235
if (isDefault) {
238
-
token("default", commentIndent);
236
+
token("default", ZERO);
239
237
} else {
240
-
token("case", commentIndent);
238
+
token("case", ZERO);
241
239
builder.open(labels.size() > 1 ? plusFour : ZERO);
242
240
builder.space();
243
241
boolean afterFirstToken = false;
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ class T {
16
16
void g(String v) {
17
17
int x =
18
18
switch (v) {
19
-
// this is a line comment about "zero"
19
+
// this is a line comment about "zero"
20
20
case "zero":
21
21
return 0;
22
22
case "one":
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4