-2

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?

Cœur
  • 34,719
  • 24
  • 185
  • 251
Ruag
  • 189
  • 1
  • 2
  • 15

3 Answers3

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
  • 84,451
  • 9
  • 82
  • 121
1

Check this out. Using suppresswarnings just tells the compiler not to warn you. It's still valid to use deprecated code, but usually there's a better way you should use instead.

Cœur
  • 34,719
  • 24
  • 185
  • 251
Mootpoint
  • 83
  • 8
0

Disables compiler warnings... In this case, deprecated code... Just for your information, for show clean code

M. Mariscal
  • 1,094
  • 1
  • 15
  • 42