I don't know about it completely. I think that it allows the deprecated code to be compiled. I want to know if the code under this line will always be run or not and does it depend on the software like Eclipse, studio you are working on?
Asked
Active
Viewed 636 times
-2
-
https://developer.android.com/reference/java/lang/SuppressWarnings – Cœur Jan 13 '19 at 15:51
3 Answers
1
The code will be compiled with or without it. It tells your IDE not to even warn you about it. Sometimes you have a good reason for using deprecated code. Putting this on those functions/classes reduces the number of warnings reported, which makes it easier to find important warnings of real problems.

Gabe Sechan
- 90,003
- 9
- 87
- 127
0
Disables compiler warnings... In this case, deprecated code... Just for your information, for show clean code

M. Mariscal
- 1,226
- 3
- 17
- 46