Klitos Kyriacou
05/16/2025, 3:38 PMobject AtoBmapper : SomeMapperInterface {
override fun map(a: A): B { ... }
}
SonarQube throws an issue with this, as it breaks rule kotlin:S6516. We can satisfy Sonar by changing it to this:
val aToBmapper = SomeMapperInterface { ... }
But this has different semantics: instead of a singleton object, it's now a property (and it also has a different name). Is this suggested change good practice?Youssef Shoaib [MOD]
05/16/2025, 3:45 PMDaniel Pitts
05/16/2025, 4:40 PMDaniel Pitts
05/16/2025, 4:40 PMDaniel Pitts
05/16/2025, 4:42 PMCLOVIS
05/16/2025, 5:17 PMtoString
to make debugging easier.Daniel Pitts
05/16/2025, 6:25 PMdata object
, but basically the same point 😉