Android Studio 中支持的@SuppressWarnings 值 [英] Supported @SuppressWarnings Values in Android Studio
问题描述
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屋!