mirror of
https://github.com/fankes/moshi.git
synced 2025-10-19 16:09:21 +08:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user