https://kotlinlang.org logo
#detekt
Title
# detekt
j

Joe

04/18/2019, 3:47 PM
Are there alternatives to using the spread (
*
) operator when dynamically building a list to call a varargs method with? or is the detekt
SpreadOperator
rule just there to make sure there's awareness of the performance implications of doing so?
s

schalkms

04/19/2019, 9:16 PM
Note that there is still some benchmarking going on. https://github.com/arturbosch/detekt/issues/554 As long as the performance impact is not fixed this will stay open
t

taso

04/23/2019, 10:15 AM
I still believe that it is mostly for awareness reasons.
It allocates another array to be able to do spread operator.
152 Views