AutoBundleWriter generates some methods with annotation. Unfortunately my project depends on newer JavaPoet version (1.11.0) generates invalid code:
public final class LibraryFragmentAutoBundle {
public static LibraryFragmentAutoBundle. @NonNull Builder builder() {
return new LibraryFragmentAutoBundle.Builder();
}
...
JavaPoet contains braking changes for AutoBundle but I want to use it. For fixing this, it might be better to change method spec defining.
AutoBundleWriter defines some methods as .returns(fooClass.annotated(ANNOTATION_NONNULL)) now. It seems that method signature means "returns annotated Foo class type":
public final class LibraryFragmentAutoBundle {
@NonNull
public static LibraryFragmentAutoBundle.Builder builder() {
return new LibraryFragmentAutoBundle.Builder();
}
...
I want to change method spec defining.
AutoBundleWriter generates some methods with annotation. Unfortunately my project depends on newer JavaPoet version (1.11.0) generates invalid code:
JavaPoet contains braking changes for AutoBundle but I want to use it. For fixing this, it might be better to change method spec defining.
AutoBundleWriter defines some methods as
.returns(fooClass.annotated(ANNOTATION_NONNULL))
now. It seems that method signature means "returns annotated Foo class type":So, separate annotation from returning:
then