View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.whitespace.separatorwrap;
2   
3   import java.util.Arrays;
4   
5   public class InputSeparatorWrapForTestMethodRef {
6   
7       void goodCase() {
8           String[] stringArray = { "Barbara", "James", "Mary", "John",
9               "Patricia", "Robert", "Michael", "Linda" };
10          Arrays.sort(stringArray, String
11                  ::compareToIgnoreCase);
12      }
13  
14      void badCase() {
15          String[] stringArray = { "Barbara", "James", "Mary", "John",
16              "Patricia", "Robert", "Michael", "Linda" };
17          /* violation */ Arrays.sort(stringArray, String::
18                  compareToIgnoreCase);
19      }
20  }