Android Studio 中支持的@SuppressWarnings 值 [英] Supported @SuppressWarnings Values in Android Studio

查看:33
本文介绍了Android Studio 中支持的@SuppressWarnings 值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android Studio 中 @SuppressWarnings 支持的所有值是什么?

What are all of the supported values for @SuppressWarnings in Android Studio?

我找不到关于它的任何文档,而且我知道它与 Eclipse 不同,因为null"不起作用.您可以使用all"捕获空警告,但正如您想象的那样,我宁愿不这样做.

I couldn't find any documentation on it, and I know it isn't the same as Eclipse because "null" doesn't work. You can catch null warnings with "all", but as you can imagine I'd rather not.

推荐答案

Alt+Enter(Windows、Linux)或 Option+回车 (OS X),然后按或点击Replace with lambda..."末尾的右箭头,最后选择一些禁止... 菜单项可用.

Press Alt+Enter (Windows, Linux) or Option+Enter (OS X), then either press or click on the arrow pointing right at the end of "Replace with lambda...", finally select some of the Suppress... menu items available.

这篇关于Android Studio 中支持的@SuppressWarnings 值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆