cushon / issues-import

0 stars 0 forks source link

Throw exceptions when matchers are used incorrectly #194

Open cushon opened 9 years ago

cushon commented 9 years ago

Original issue 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.