Skip to content

Commit

Permalink
Renamed whitelist to allowList in mongodb-panache-kotlin TestAnalogs
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobinson committed Aug 20, 2021
1 parent 6d11062 commit 1af1737
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> = listOf()) {
private fun compare(javaClass: AnalogVisitor, kotlinClass: AnalogVisitor, allowList: List<String> = listOf()) {
val javaMethods = javaClass.methods
val kotlinMethods = kotlinClass.methods
val implemented = mutableListOf<Method>()
Expand All @@ -97,7 +97,7 @@ class TestAnalogs {

javaMethods.removeIf {
it.name.endsWith("Optional") ||
it.name in whiteList ||
it.name in allowList ||
it in implemented
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> = listOf()) {
private fun compare(javaClass: AnalogVisitor, kotlinClass: AnalogVisitor, allowList: List<String> = listOf()) {
val javaMethods = javaClass.methods
val kotlinMethods = kotlinClass.methods
val implemented = mutableListOf<Method>()
Expand All @@ -132,7 +132,7 @@ class TestAnalogs {
}

javaMethods.removeIf {
it.name in whiteList ||
it.name in allowList ||
it in implemented
}

Expand Down

0 comments on commit 1af1737

Please sign in to comment.