kotlin - 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.
解决方案
编写src/test/kotlin
使用您的函数的测试代码。
推荐阅读
- html - 为什么@font-face 在我的样式表中失败?
- javascript - 用 html 视频对漂亮的 dnd 做出反应,而不是冒泡事件
- reactjs - Azure 应用服务静态网站 routes.json 不起作用
- flutter - 如何捕获 ERROR_REQUIRES_RECENT_LOGIN?
- ruby-on-rails - Rails 6 APi 从用户出生日期过滤用户年龄
- python - 子进程没有捕获标准输出
- python - Python Mixins:*args/**kwargs 与显式调用`__init__`
- swift - 如何从 TabBarController 传输数据
- python - 尝试使用 Flask SqlAlchemy event.listen 在我的表中更改自动增量起始值。但我遇到表不存在
- javascript - 解决循环组合程序问题的程序