diff options
author | Zac Sweers <zac.sweers@gmail.com> | 2021-10-15 11:29:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-15 11:29:18 -0400 |
commit | 43de7084390504c637f9d12c8beab51aa4c0e388 (patch) | |
tree | 6fd413419842036510e77576dd0d30793fa6bab7 /interop/kotlinx-metadata/src/test/kotlin/com/squareup/kotlinpoet/metadata/specs | |
parent | aee95d06e32897c8edcbfecbb3d8758c72982abc (diff) | |
download | kotlinpoet-43de7084390504c637f9d12c8beab51aa4c0e388.tar.gz |
Ignore java deprecated annotations on synthetic methods for annotations (#1167)
Diffstat (limited to 'interop/kotlinx-metadata/src/test/kotlin/com/squareup/kotlinpoet/metadata/specs')
-rw-r--r-- | interop/kotlinx-metadata/src/test/kotlin/com/squareup/kotlinpoet/metadata/specs/KotlinPoetMetadataSpecsTest.kt | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/interop/kotlinx-metadata/src/test/kotlin/com/squareup/kotlinpoet/metadata/specs/KotlinPoetMetadataSpecsTest.kt b/interop/kotlinx-metadata/src/test/kotlin/com/squareup/kotlinpoet/metadata/specs/KotlinPoetMetadataSpecsTest.kt index 5837e6da..ddce3c69 100644 --- a/interop/kotlinx-metadata/src/test/kotlin/com/squareup/kotlinpoet/metadata/specs/KotlinPoetMetadataSpecsTest.kt +++ b/interop/kotlinx-metadata/src/test/kotlin/com/squareup/kotlinpoet/metadata/specs/KotlinPoetMetadataSpecsTest.kt @@ -13,7 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -@file:Suppress("RemoveRedundantQualifierName", "RedundantSuspendModifier", "NOTHING_TO_INLINE") +@file:OptIn(KotlinPoetMetadataPreview::class) +@file:Suppress( + "DEPRECATION", + "NOTHING_TO_INLINE", + "RedundantSuspendModifier", + "RedundantUnitReturnType", + "RedundantVisibilityModifier", + "RemoveEmptyPrimaryConstructor", + "RemoveRedundantQualifierName", + "UNUSED_PARAMETER", + "unused", +) package com.squareup.kotlinpoet.metadata.specs import com.google.common.truth.Truth.assertThat @@ -40,8 +51,6 @@ import kotlin.annotation.AnnotationTarget.TYPE_PARAMETER import kotlin.properties.Delegates import kotlin.test.fail -@KotlinPoetMetadataPreview -@Suppress("unused", "UNUSED_PARAMETER") class KotlinPoetMetadataSpecsTest : MultiClassInspectorTest() { @Test |