Elffuss BraidHub

kikocis/java-driver public

Add explicit cast to avoid ambiguous varargs warning.
Changeset2f7c33606680fceab6e754d6d9e569287bcab441140a534c0e453b7b4df19b71
AuthorAlexandre Dutra <alexandre.dutra@datastax.com> · 2016-06-20 11:20 +02:00
Committerolim7t <omichallat+github@gmail.com> · 2016-07-22 09:47 -07:00
Parents356657f61364

Browse the files at this changeset

1 file changed

modified driver-mapping/src/main/java/com/datastax/driver/mapping/ReflectionUtils.java +1 −1
@@ -140,7 +140,7 @@
140140
141141 private static void maybeAddOverriddenMethodAnnotations(Map<Class<? extends Annotation>, Annotation> annotations, Method getter, Class<?> clazz) {
142142 try {
143- Method overriddenGetter = clazz.getDeclaredMethod(getter.getName(), getter.getParameterTypes());
143+ Method overriddenGetter = clazz.getDeclaredMethod(getter.getName(), (Class[]) getter.getParameterTypes());
144144 for (Annotation annotation : overriddenGetter.getAnnotations()) {
145145 // do not override a more specific version of the annotation type being scanned
146146 if (!annotations.containsKey(annotation.annotationType()))