From 79afc4f72bd60307a252b8215bf4246b001e9203 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Wed, 20 May 2020 19:02:37 +0300 Subject: [PATCH] stdlib-gen: avoid placing exact duplicates of annotations --- .../tools/kotlin-stdlib-gen/src/templates/dsl/MemberBuilder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/tools/kotlin-stdlib-gen/src/templates/dsl/MemberBuilder.kt b/libraries/tools/kotlin-stdlib-gen/src/templates/dsl/MemberBuilder.kt index 08173795e6c..caa91ecac51 100644 --- a/libraries/tools/kotlin-stdlib-gen/src/templates/dsl/MemberBuilder.kt +++ b/libraries/tools/kotlin-stdlib-gen/src/templates/dsl/MemberBuilder.kt @@ -66,7 +66,7 @@ class MemberBuilder( var returns: String? = null; private set val throwsExceptions = mutableListOf() var body: String? = null; private set - val annotations: MutableList = mutableListOf() + val annotations: MutableSet = mutableSetOf() val suppressions: MutableList = mutableListOf() fun sourceFile(file: SourceFile) { sourceFile = file }