Skip to content

Retain annotations of my interface like @NotNull in generated classes. #122

@Snowbae1017

Description

@Snowbae1017

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;
    }
}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions