Stdlib: fix name shadowing and names of overridden method parameters

This commit is contained in:
Ilya Gorbunov
2018-09-08 06:35:41 +03:00
parent bf4be12239
commit b1c2daf1fe
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -136,8 +136,8 @@ class OrderingTest {
@Test
fun sortUsingCustomComparator() {
val comparator = object : Comparator<Item> {
override fun compare(o1: Item, o2: Item): Int {
return compareValuesBy(o1, o2, { it.name }, { it.rating })
override fun compare(a: Item, b: Item): Int {
return compareValuesBy(a, b, { it.name }, { it.rating })
}
override fun equals(other: Any?): Boolean {