aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/resources/com/google/googlejavaformat/java/testdata/B20844369.output
blob: 982dc2b5d81b6f68fee479049f78204abf8804e1 (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
32
33
public class B20844369 {
  private static final String ID_PATTERN =
      // TODO(daw): 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;
}