Throw exceptions when matchers are used incorrectly
Open
migrated
Priority-Medium
Type-Defect
- Dominant language
- Java
- Stars
- 7.2k
- Forks
- 820
- Avg merge
- 5h 9m
- Merged PRs (30d)
- 50
Description
_[Original issue](https://code.google.com/p/error-prone/issues/detail?id=194) created by **mdempsky@google.com** on 2013-09-20 at 09:25 PM_
---
Currently, a matcher like staticMethod("Foo", "bar()") or isDescendantOfMethod("Foo", "bar") will never match, but error-prone doesn't complain about them. It would be less error prone (;)) if they had appropriate Preconditions to reject invalid matcher use.
Contributor guide
Assessment
This issue has not been assessed yet.