interfacer icon indicating copy to clipboard operation
interfacer copied to clipboard

Add support for 'default' methods in interfaces

Open dch-epo opened this issue 3 years ago • 0 comments

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.

dch-epo avatar Dec 05 '22 12:12 dch-epo