Suppress common warnings in generated classes (#1028)

* Suppress common warnings in generated classes

Followup from #1023 (Resolves #1023 too). Since we can't do targeted deprecation suppressions, we can just stick with blanket deprecations suppressions for now. This also suppresses a couple other common issues with all our generated adapters.

Have just eyeballed the results for now, can add a proper test as a followup once #1014 is in

* Add redundant projection and re-enable -Werror

* Add tests for deprecation suppression

With -Werror enabled now we can actually check this
This commit is contained in:
Zac Sweers
2019-11-17 09:40:49 -05:00
committed by Jesse Wilson
parent f7dbde2114
commit f49f677bfc
4 changed files with 40 additions and 9 deletions

View File

@@ -115,11 +115,7 @@
</executions>
<configuration>
<args>
<!--
Disabled for now because we generate redundant `out` variance for some generics,
but there's no way for us to know when it's redundant.
-->
<!-- <arg>-Werror</arg>-->
<arg>-Werror</arg>
<arg>-Xuse-experimental=kotlin.ExperimentalStdlibApi</arg>
<arg>-XXLanguage:+InlineClasses</arg>
</args>