Class 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: (Andrew Rice)
See Also: