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

Use default annotation for optional interface method #504

Merged
merged 1 commit into from
Oct 24, 2019

Conversation

ippschi
Copy link
Contributor

@ippschi ippschi commented Oct 18, 2019

The BarcodeCallback interface has two methods. One of them is the actual callback, the other one is the optional method for result points. From JAVA 8 on we can use default methods to mark optional interface methods.

@rkistner
Copy link
Member

Just confirming: Default methods are still supported on older Android SDK versions (at least 14 and up)?

@ippschi
Copy link
Contributor Author

ippschi commented Oct 24, 2019

Yes, it only depends on Java 8:

sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8

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

Successfully merging this pull request may close these issues.

2 participants