How to find all places where depreciated methods are being used in Netbeans?

Asked

Viewed 58 times

0

Are there any tools in Netbeans that allow you to generate a file, report, log, or something like that to find all methods that are deprecated in a Class or Project?

I tried to find on the Internet, and on Stack itself, however, I only found something for Eclipse, where they were presented along with the project warnings.

I use Netbeans 8.0.

  • 1

    Would reply but if you do not mind translating, the answer is in the stackoverflow in English: https://stackoverflow.com/questions/2583138/how-do-i-detect-the-deprecated-methods-in-a-program

  • Thanks, maybe it was the way I researched, giving more focus on "Netbeans" than on Java that made me not find.

  • Has any response helped solve the problem and can address similar questions from other users? If so, make sure to mark the answer as accepted. To do this just click on the left side of it (below the indicator of up and down votes).

1 answer

0

Open the properties of your project, go to the option Compilação within the option Construir in the tree on the left side. In the field Opções Adicionais do Compilador insert -deprecation. After that the depreciated methods will be shown as warning in the output of the project when compiled.

Imagem


-deprecation

Show a Description of each use or override of a deprecated.

In free translation:

Shows the description of each use or overload of members or depreciated classes.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.