.map(stmt -> new NodeIdentifier((QName) stmt.argument()))
.collect(ImmutableSet.toImmutableSet());
- final var it = childPaths.iterator();
- if (!it.hasNext()) {
+ if (childPaths.isEmpty()) {
return null;
}
- final var namespace = it.next().getNodeType().getModule();
final var factory = factory();
final GeneratedType javaType = augment.javaType();
throw new IllegalStateException(
"RuntimeContext references type " + javaType + " but failed to load its class", e);
}
- return new AugmentationCodecPrototype(augClass, namespace, augment, factory, childPaths);
+ return new AugmentationCodecPrototype(augClass, augment, factory, childPaths);
}
@Override