Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mutianf committed Dec 9, 2021
1 parent b929935 commit d32aa4a
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -20,15 +20,15 @@
import java.util.Arrays;

/**
* A {@link Correspondence} to compare methods names and parameters in different classes. An example
* A {@link Correspondence} to compare methods names, parameters and return types in different classes. An example
* usage is to make sure a child class is implementing all the methods in the non-abstract parent
* class.
*/
public class MethodComparator {

public static final Correspondence<Method, Method> METHOD_CORRESPONDENCE =
Correspondence.from(
MethodComparator::compareMethods, "compare method names, return types and parameters");
MethodComparator::compareMethods, "compare method names, parameters and return types");

private static boolean compareMethods(Method actual, Method expected) {
if (!actual.getName().equals(expected.getName())
Expand Down

0 comments on commit d32aa4a

Please sign in to comment.