Class AssertEqualsArgumentOrderChecker

java.lang.Object
com.google.errorprone.bugpatterns.BugChecker
com.google.errorprone.bugpatterns.argumentselectiondefects.AssertEqualsArgumentOrderChecker
All Implemented Interfaces:
BugChecker.MethodInvocationTreeMatcher, Suppressible, Serializable

public class AssertEqualsArgumentOrderChecker
extends BugChecker
implements BugChecker.MethodInvocationTreeMatcher
Checker to make sure that assertEquals-like methods are called with the arguments expected and actual the right way round.

Warning: this check relies on recovering parameter names from library class files. These names are only included if you compile with debugging symbols (-g) or with -parameters. You also need to tell the compiler to read these names from the classfiles and so must compile your project with -parameters too.

Author:
andrewrice@google.com (Andrew Rice)
See Also:
Serialized Form