@Test void setter_should_have_void_return_type() { assertThat(isAccessor("class T { private int a; public int setA(int a) { return a; } }")).isFalse(); }
public static boolean isAccessor(ClassTree classTree, MethodTree methodTree) { return isPublicMethod(methodTree) && methodTree.block() != null && (isGetter(classTree, methodTree) || isSetter(classTree, methodTree)); }
AccessorsUtils { public static boolean isAccessor(ClassTree classTree, MethodTree methodTree) { return isPublicMethod(methodTree) && methodTree.block() != null && (isGetter(classTree, methodTree) || isSetter(classTree, methodTree)); } }
AccessorsUtils { public static boolean isAccessor(ClassTree classTree, MethodTree methodTree) { return isPublicMethod(methodTree) && methodTree.block() != null && (isGetter(classTree, methodTree) || isSetter(classTree, methodTree)); } private  AccessorsUtils(); }
AccessorsUtils { public static boolean isAccessor(ClassTree classTree, MethodTree methodTree) { return isPublicMethod(methodTree) && methodTree.block() != null && (isGetter(classTree, methodTree) || isSetter(classTree, methodTree)); } private  AccessorsUtils(); static boolean isAccessor(ClassTree classTree, MethodTree methodTree); }
AccessorsUtils { public static boolean isAccessor(ClassTree classTree, MethodTree methodTree) { return isPublicMethod(methodTree) && methodTree.block() != null && (isGetter(classTree, methodTree) || isSetter(classTree, methodTree)); } private  AccessorsUtils(); static boolean isAccessor(ClassTree classTree, MethodTree methodTree);  }