反例 @RunWith(MockitoJunitRunner.class)public class Test {@Mockpublic SomeBean someBean = new SomeBean();} 正例 @RunWith(MockitoJunitRunner.class)public class Test {@Mockpublic SomeBean someBean ;
反例 public Collection<String> sort(Collection<String> foos){List<String> sortedFoos = new ArrayList<>(foos);Collection.sort(sortedFoos);return sortedFoos;} 正例 public Collection<String> sort(Collect