From 5483df8bf6db1a6d36a08a8cd2e66596c6ad0f26 Mon Sep 17 00:00:00 2001 From: Paul Robinson Date: Fri, 20 Aug 2021 17:05:55 +0100 Subject: [PATCH] Renamed whitelist to allowList in mongodb-panache-kotlin TestAnalogs --- .../hibernate/orm/panache/kotlin/runtime/TestAnalogs.kt | 4 ++-- .../kotlin/io/quarkus/mongodb/panache/kotlin/TestAnalogs.kt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/runtime/TestAnalogs.kt b/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/runtime/TestAnalogs.kt index 529a5e720b15e..d0076144f59e4 100644 --- a/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/runtime/TestAnalogs.kt +++ b/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/runtime/TestAnalogs.kt @@ -82,7 +82,7 @@ class TestAnalogs { private fun KClass<*>.bytes() = java.classLoader.getResourceAsStream(qualifiedName.toString().replace(".", "/") + ".class") - private fun compare(javaClass: AnalogVisitor, kotlinClass: AnalogVisitor, whiteList: List = listOf()) { + private fun compare(javaClass: AnalogVisitor, kotlinClass: AnalogVisitor, allowList: List = listOf()) { val javaMethods = javaClass.methods val kotlinMethods = kotlinClass.methods val implemented = mutableListOf() @@ -97,7 +97,7 @@ class TestAnalogs { javaMethods.removeIf { it.name.endsWith("Optional") || - it.name in whiteList || + it.name in allowList || it in implemented } diff --git a/extensions/panache/mongodb-panache-kotlin/runtime/src/test/kotlin/io/quarkus/mongodb/panache/kotlin/TestAnalogs.kt b/extensions/panache/mongodb-panache-kotlin/runtime/src/test/kotlin/io/quarkus/mongodb/panache/kotlin/TestAnalogs.kt index e89d8b126d6be..cf16838d3056b 100644 --- a/extensions/panache/mongodb-panache-kotlin/runtime/src/test/kotlin/io/quarkus/mongodb/panache/kotlin/TestAnalogs.kt +++ b/extensions/panache/mongodb-panache-kotlin/runtime/src/test/kotlin/io/quarkus/mongodb/panache/kotlin/TestAnalogs.kt @@ -118,7 +118,7 @@ class TestAnalogs { private fun KClass<*>.bytes() = java.classLoader.getResourceAsStream(qualifiedName.toString().replace(".", "/") + ".class") - private fun compare(javaClass: AnalogVisitor, kotlinClass: AnalogVisitor, whiteList: List = listOf()) { + private fun compare(javaClass: AnalogVisitor, kotlinClass: AnalogVisitor, allowList: List = listOf()) { val javaMethods = javaClass.methods val kotlinMethods = kotlinClass.methods val implemented = mutableListOf() @@ -132,7 +132,7 @@ class TestAnalogs { } javaMethods.removeIf { - it.name in whiteList || + it.name in allowList || it in implemented }