Skip to content

Commit

Permalink
Add a regression test for handling of /// comments
Browse files Browse the repository at this point in the history
#1153

PiperOrigin-RevId: 673553329
  • Loading branch information
cushon authored and google-java-format Team committed Sep 11, 2024
1 parent 9f2611e commit de08ce7
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ public class FormatterIntegrationTest {
"I981",
"I1020",
"I1037")
// TODO: https://github.com/google/google-java-format/issues/1153
// .putAll(23, "I1153")
.build();

@Parameters(name = "{index}: {0}")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
class I1153 {
void f() {
//// (1) one
int one;

//// (2) two
int two;

//// (2.1) if we need to collect data using multiple different collectors, e.g. taxonomy and
//// ranges, or even two taxonomy facets that use different Category List Field, we can
//// use MultiCollectorManager, e.g.:
// TODO: This should be (2.1) two point one
int twoPointOne;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
class I1153 {
void f() {
//// (1) one
int one;

//// (2) two
int two;

//// (2.1) if we need to collect data using multiple different collectors, e.g. taxonomy and
//// ranges, or even two taxonomy facets that use different Category List Field, we can
//// use MultiCollectorManager, e.g.:
// TODO: This should be (2.1) two point one
int twoPointOne;
}
}

0 comments on commit de08ce7

Please sign in to comment.