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