summaryrefslogtreecommitdiffstats
path: root/infra/translate-utils/src/main/java/io/fd
diff options
context:
space:
mode:
Diffstat (limited to 'infra/translate-utils/src/main/java/io/fd')
-rw-r--r--infra/translate-utils/src/main/java/io/fd/honeycomb/translate/util/read/ReflexiveListReaderCustomizer.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/infra/translate-utils/src/main/java/io/fd/honeycomb/translate/util/read/ReflexiveListReaderCustomizer.java b/infra/translate-utils/src/main/java/io/fd/honeycomb/translate/util/read/ReflexiveListReaderCustomizer.java
index e058964a0..daf6f3566 100644
--- a/infra/translate-utils/src/main/java/io/fd/honeycomb/translate/util/read/ReflexiveListReaderCustomizer.java
+++ b/infra/translate-utils/src/main/java/io/fd/honeycomb/translate/util/read/ReflexiveListReaderCustomizer.java
@@ -59,14 +59,14 @@ public class ReflexiveListReaderCustomizer<C extends DataObject & Identifiable<K
public void readCurrentAttributes(final InstanceIdentifier<C> id, final B builder, final ReadContext context)
throws ReadFailedException {
final Optional<Method> method =
- ReflectionUtils.findMethodReflex(builder.getClass(), "setKey",
+ ReflectionUtils.findMethodReflex(builder.getClass(), "withKey",
Collections.singletonList(keyType), builder.getClass());
- checkArgument(method.isPresent(), "Unable to setKey to %s", builder);
+ checkArgument(method.isPresent(), "Unable to build withKey for %s", builder);
try {
method.get().invoke(builder, ((KeyedInstanceIdentifier)id).getKey());
} catch (IllegalAccessException | InvocationTargetException e) {
- throw new IllegalArgumentException("Unable to setKey to " + builder, e);
+ throw new IllegalArgumentException("Unable to build withKey for " + builder, e);
}
}