1 package com.google.checkstyle.test.chapter4formatting.rule451wheretobreak;
2
3
4 public class InputFormattedSeparatorWrapComma {
5
6 public void goodCase() {
7 int i = 0;
8 String s = "ffffooooString";
9 s.isEmpty();
10 s.isEmpty();
11
12 foo(i, s);
13 }
14
15
16 public static void foo(int i, String s) {}
17 }
18
19
20 class ExtraBadCaseComma {
21
22
23 public void goodCase(int... foo) {
24 int i = 0;
25
26 String s = "ffffooooString";
27 boolean b = s.isEmpty();
28 foo(i, s);
29 int[] j;
30 }
31
32
33 public static String foo(int i, String s) {
34 String maxLength = "123";
35 int truncationLength = 1;
36 CharSequence seq = null;
37 Object truncationIndicator = null;
38 return new StringBuilder(maxLength)
39 .append(seq, 0, truncationLength)
40 .append(truncationIndicator)
41 .toString();
42 }
43 }