[JAVA] Automatically insert `@SuppressWarnings` in Android Studio

I found this when I looked up how to look up the appropriate warning name.

Place the cursor over the warning you want to suppress

If you open the "Try to generify ~" submenu from the menu that opens with, there are some items that start with "Suppress ~". Select an item depending on which scope you want to suppress.

By the way, I chose Suppress for statement and found out

//noinspection unchecked

There is anything. It looks like an AS original, and it's hard to understand if it's a single unit, so the opportunity to use it seems to be limited.

reference

https://stackoverflow.com/a/17603987/4821980

Recommended Posts

Automatically insert `@SuppressWarnings` in Android Studio
Notes in Android studio
OkHttp3 (GET, POST) in Android Studio
Java to C and C to Java in Android Studio
How to use ExpandableListView in Android Studio
Riot (chat app) development (settings) in Android Studio
3 ways to import the library in Android Studio
Use the JDK used in Android Studio in the terminal
Difficulties when implementing Alarm Manager in Android Studio
I got a cannot resolve symbol in Android Studio
Asynchronous processing and Web API integration in Android Studio
Defeating Android Studio Part 3-6
Defeating Android Studio Part 1 & Part 2
Refer to C ++ in the Android Studio module (Java / kotlin)
Use a JDK from another OpenJDK provider in Android Studio
You are currently using Java 6. Solution in Android Studio Gradle
Insert footer in Java Powerpoint
Java in Visual Studio Code
[Android] Implement Adblock in WebView
The problem that XML attributes are sorted arbitrarily in Android Studio
Source to display character array with numberPicker in Android studio (Java)
Determining if a custom keyboard is enabled in Android Studio (Java)