aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/resources/com/google/googlejavaformat/java/testdata/B20844369.input
blob: 7317f17b9d2108f0e74b44fdda20c8af785589ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
public class B20844369 {
  private static final String ID_PATTERN =
  // TODO(user): add min/max lengths for the numbers here, e.g. android ID
  "(?:(?<androidId>\\d+)\\+)?" // optional Android ID
      + "(?<type>\\d+)" // type
      + ":"
      + "(?<timestamp>\\d+)" // timestamp
      + "(?<subtype>%" // begin optional subtype
      + "(?:(?<userId>\\d+)#)?" // subtype's optional user ID, followed by a hash
      + "(?<categoryHash>[0-9a-fA-F]{8})" // subtype's category hash
      + "(?<tokenHash>[0-9a-fA-F]{8})" // subtype's token hash
      + ")?"; // end optional subtype

  int x = //foo
      42 + //bar
          1;

  int x =
      //foo
      42 + //bar
          1;

  int x = /*foo*/
      42 + //bar
          1;

  int x =
      /*foo*/
      42 + //bar
          1;
}