package com.google.checkstyle.test.chapter4formatting.rule451wheretobreak;

import java.util.Arrays;

public class InputSeparatorWrapMethodRef {

    
void goodCase() {
        
String[] stringArray = { "Barbara", "James", "Mary", "John",
            
"Patricia", "Robert", "Michael", "Linda" };
        
Arrays.sort(stringArray, String
                
::compareToIgnoreCase);
    
}

    
void badCase() {
        
String[] stringArray = { "Barbara", "James", "Mary", "John",
            
"Patricia", "Robert", "Michael", "Linda" };
        
/*warn*/ Arrays.sort(stringArray, String::
                
compareToIgnoreCase);
    
}
}