Hi, when using autopipeline, I encountered a little difficulty about using annotation.
The annotations in my interface like @NotNull cannot be retained in the generated classes (including the implementations of my interface and the Handler interface), which makes it impossible for me to constrain the Handler implementations at the interface level.
code sample:
@AutoPipeline
public interface ConfigSource {
@NotNull
String get(@NotNull String key);
}
// I hope the implementations of ConfigSourceHandler can also be constrained by @NotNull.
public class ConfigSourceHandlerImpl implements ConfigSourceHandler {
@Override
public String get(String key, ConfigSourceHandlerContext configSourceHandlerContext) {
return null;
}
}