Skip to content

4.0.0.beta1 generating duplicate method layout(int)  #988

@markchristopherng

Description

@markchristopherng

Hi

The 4.0.0.beta1 version is generating duplicate methods on the builder. When i downgrade to 3.11.0 it goes away.

In the console i get an error like this

method layout(int) is already defined in class EpoxyOfflineArticles_
public EpoxyOfflineArticles_ layout(@LayoutRes int layoutRes) {

When i open up the generated class you can see the duplicated method

public interface EpoxyArticlesBuilder {
EpoxyArticlesBuilder onBind(OnModelBoundListener<EpoxyArticles_, TrackItemRowView> listener);

EpoxyArticlesBuilder onUnbind(OnModelUnboundListener<EpoxyArticles_, TrackItemRowView> listener);

EpoxyArticlesBuilder onVisibilityStateChanged(
OnModelVisibilityStateChangedListener<EpoxyArticles_, TrackItemRowView> listener);

EpoxyArticlesBuilder onVisibilityChanged(
OnModelVisibilityChangedListener<EpoxyArticles_, TrackItemRowView> listener);

EpoxyArticlesBuilder consignmentWrapper(
@nullable NonEqualWrapper consignmentWrapper);

EpoxyArticlesBuilder itemViewListener(@nullable ActionableTrackItemListener itemViewListener);

EpoxyArticlesBuilder layout(@LayoutRes int layoutRes);

EpoxyArticlesBuilder id(long id);

EpoxyArticlesBuilder id(@androidx.annotation.Nullable Number... ids);

EpoxyArticlesBuilder id(long id1, long id2);

EpoxyArticlesBuilder id(@androidx.annotation.Nullable CharSequence key);

EpoxyArticlesBuilder id(@androidx.annotation.Nullable CharSequence key,
@androidx.annotation.Nullable CharSequence... otherKeys);

EpoxyArticlesBuilder id(@androidx.annotation.Nullable CharSequence key, long id);

EpoxyArticlesBuilder layout(@LayoutRes int layoutRes);

EpoxyArticlesBuilder spanSizeOverride(
@androidx.annotation.Nullable EpoxyModel.SpanSizeOverrideCallback spanSizeCallback);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions