How to suppress compile warnings?


#1

WARNING: /Volumes/work/dev/xujun/visitor/src/main/java/jaxrs.kt: (465, 42) The corresponding parameter in the supertype 'MessageBodyWriter' is named 'p1'. This may cause problems when calling this function with named arguments.

In java, we can achieve with this:

@SuppressWarnings(“unchecked”)

thanks!

Outersky


#2

It is not supported yet. See http://youtrack.jetbrains.com/issue/KT-3319