groostav
03/13/2019, 8:07 PMval something = when(business) {
//...
someCase -> {
POKOType.forName(name) ?: Log.warning("angry"); POKOType()
}
If i had some kind of @Pure
ref-transparent enforcement I could at least get this code tagged as suspicious, if not generate a compiler failure out right.
whats the most aggressive thing I can do in my build system to catch this?ilya.gorbunov
03/13/2019, 11:12 PMforName
is used in elvis operator.ilya.gorbunov
03/13/2019, 11:14 PMif (POKOType.forName(name) == null) {
Log.warning("...")
}
return POKOType()
natpryce
03/14/2019, 7:42 AMefemoney
03/14/2019, 4:31 PM