cushon / issues-import

0 stars 0 forks source link

Add @SafeVarargs to Matchers.anyOf(), Matchers.allOf(), etc. #195

Closed cushon closed 9 years ago

cushon commented 9 years ago

Original issue created by mdempsky@google.com on 2013-09-23 at 07:32 PM


Currently using Matchers.anyOf(), Matchers.allOf(), etc give warnings like:

warning: [unchecked] unchecked generic array creation for varargs parameter of type Matcher<? super ExpressionTree>[]

This can be avoided by annotating the methods as @SafeVargs, but that annotation was added in JDK 7. Not sure if error-prone still cares about JDK 6 compatibility.

cushon commented 9 years ago

Original comment posted by mdempsky@google.com on 2013-09-25 at 10:01 PM


This issue was closed by revision 84aa6d99c64e.


Status: Fixed