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

suppress deprecation warnings in generated code #1395

Merged
merged 3 commits into from
Jun 18, 2019

Conversation

vtrifonov
Copy link
Contributor

@vtrifonov vtrifonov commented Jun 13, 2019

Related to #1396

When extending a class SBG generates methods for all methods in the parent class including the deprecated ones, so to avoid those warnings we are are adding @SuppressWarnings("deprecation") before the method declaration.

A new setting is added which will cause the build to fail if there are any warnings in the generated code (excluding the autogenerated abstract deprecated methods from the SBG). The setting will be helpful if you want to check whether you are using deprecated methods when extending a class. To enable it add the following in the App_Resources/app.gradle file:

project.ext.failOnCompilationWarnings = true

@cla-bot cla-bot bot added the cla: yes label Jun 13, 2019
@vtrifonov vtrifonov force-pushed the trifonov/javac-warnings-fix branch 2 times, most recently from 2b800fd to 334b7bd Compare June 13, 2019 12:19
@vtrifonov vtrifonov force-pushed the trifonov/javac-warnings-fix branch from 334b7bd to fb4a91d Compare June 13, 2019 12:36
@vtrifonov vtrifonov requested a review from vmutafov June 14, 2019 15:25
@vmutafov vmutafov merged commit c076375 into master Jun 18, 2019
@vmutafov vmutafov deleted the trifonov/javac-warnings-fix branch June 18, 2019 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants