JDEPRSCAN(1) JDK Commands JDEPRSCAN(1) (NAME) jdeprscan - ( ) (SYNOPSIS) jdeprscan [] {dir|jar|class} jdeprscan . dir|jar|class jdeprscan API (deprecated) . : o dir: () o jar: JAR o class: (.) . : java.lang.Thread (nested classes) $ . : java.lang.Thread$State . : build/classes/java/lang/Thread$State.class (DESCRIPTION) jdeprscan JDK JAR API . API jdeprscan SE . API (third-party) . JAR (class path) . --class-path jdeprscan . . jdeprscan . : error: cannot find class ... . JDEPRSCAN (OPTIONS FOR THE JDEPRSCAN COMMAND) : --class-path path . path . : o macOS: --class-path /some/directory:/another/different/dir : (;) (:) . o : --class-path \some\directory;\another\different\dir --for-removal API (deprecated for removal). 6 7 8 . --full-version . --help -h . --list -l API . jar . --release 6|7|8|9 SE API . --verbose -v . --version . JDEPRSCAN (EXAMPLE OF JDEPRSCAN OUTPUT) JAR commons-math3-3.6.1.jar . JAR API : jdeprscan commons-math3-3.6.1.jar . : class org/apache/commons/math3/util/MathUtils uses deprecated method java/lang/Double::(D)V : 4.2.1 (JVMS) . . java.lang.Double . (constructor) . (class static initializer) . . : (D)V double ( primitive) void . . : class org/apache/commons/math3/util/Precision uses deprecated method java/math/BigDecimal::setScale(II)Ljava/math/BigDecimal; java.math.BigDecimal setScale() . (II) int . Ljava/math/BigDecimal; java.math.BigDecimal . JDEPRSCAN (JDEPRSCAN ANALYSIS CAN BE VERSION-SPECIFIC) jdeprscan JDK . JDK 9 JDK 8 7 6 . : public class Deprecations { SecurityManager sm = new RMISecurityManager(); // deprecated in 8 Boolean b2 = new Boolean(true); // deprecated in 9 } JDK 7 . jdeprscan JDK 9 : $ jdeprscan --class-path classes --release 7 example.Deprecations (no output) jdeprscan 8 : $ jdeprscan --class-path classes --release 8 example.Deprecations class example/Deprecations uses type java/rmi/RMISecurityManager deprecated class example/Deprecations uses method in type java/rmi/RMISecurityManager deprecated jdeprscan JDK 9 : $ jdeprscan --class-path classes example.Deprecations class example/Deprecations uses type java/rmi/RMISecurityManager deprecated class example/Deprecations uses method in type java/rmi/RMISecurityManager deprecated class example/Deprecations uses method java/lang/Boolean (Z)V deprecated JDK 17 2021 JDEPRSCAN(1)