首页 > 解决方案 > Kotlin alternative for @SuppressWarnings("WeakerAccess")

问题描述

Is there alternative for @SuppressWarnings("WeakerAccess") in kotlin?
I've tried @Suppress("WeakerAccess") but no luck. It's pretty annoying to see "Function xxx could be private" when developing a library.

标签: kotlinannotationssuppress-warnings

解决方案


编写src/test/kotlin使用您的函数的测试代码。


推荐阅读