Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for 'default' methods in interfaces #6

Open
dch-epo opened this issue Dec 5, 2022 · 0 comments
Open

Add support for 'default' methods in interfaces #6

dch-epo opened this issue Dec 5, 2022 · 0 comments

Comments

@dch-epo
Copy link

dch-epo commented Dec 5, 2022

It appears Interfacer cannot match an interface if it has default methods:

public interface CustomMessage {
    Context getContext();

    default boolean isRepublished() {
        return getContext().getRepublishCount() > 0;
    }
}

It would have been a neat way to "inject" code into auto-generated classes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant