© Kishori Sharan 2017

Kishori Sharan, Java 9 Revealed, 10.1007/978-1-4842-2592-9_15

15. Enhanced Deprecation

Kishori Sharan

(1)Montgomery, Alabama, USA

In this chapter, you will learn:

  • How to deprecate your APIs

  • The roles of the @deprecate Javadoc tag and the @Deprecation annotation in deprecating APIs

  • The detailed rules that are used to generated deprecation warnings

  • Updates to the @Deprecation annotation in JDK 9

  • New deprecation warnings in JDK 9

  • How to use the @SuppressWarnings annotation to suppress different types of deprecation warnings in JDK 9

  • How to use the static analysis tool named jdeprscan to scan your compiled codebase to find the uses of deprecated JDK APIs

What Is Deprecation?

Deprecation in Java is a way to provide information about the ...

Get Java 9 Revealed: For Early Adoption and Migration now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.