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