-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
  • 37,241
  • 25
  • 195
  • 267
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
  • 90,003
  • 9
  • 87
  • 127
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
  • 37,241
  • 25
  • 195
  • 267
Mootpoint
  • 83
  • 8
0

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

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