< prev index next >

src/jdk.jdeps/share/classes/com/sun/tools/jdeprscan/readme.md

Print this page

        

*** 1,8 **** <!-- ! Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. This code is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 only, as published by the Free Software Foundation. Oracle designates this --- 1,8 ---- <!-- ! Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. This code is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 only, as published by the Free Software Foundation. Oracle designates this
*** 132,165 **** **EXAMPLE OUTPUT** The output is a report that lists program elements that use deprecated APIs. Output is subject to change. ! Consider the following declarations from Java SE 9: // java.lang.Boolean @Deprecated(since="9") public Boolean(boolean value) ! // java.lang.Runtime ! @Deprecated(since="1.2", forRemoval=true) ! public static void runFinalizersOnExit(boolean value) Running **jdeprscan** over a class that calls these methods will result in output something like the following: class Example uses method java/lang/Boolean.<init>(Z)V deprecated ! class Example uses method java/lang/Runtime.runFinalizersOnExit(Z)V deprecated for removal Running **jdeprscan** with the `--list` option will result in output including something like the following: ... @Deprecated(since="9") java.lang.Boolean(boolean) ! @Deprecated(since="1.2", forRemoval=true) void java.lang.Runtime.runFinalizersOnExit(boolean) ... **NOTES** The **jdeprscan** tool operates by opening Java class files and --- 132,165 ---- **EXAMPLE OUTPUT** The output is a report that lists program elements that use deprecated APIs. Output is subject to change. ! Consider the following declarations: // java.lang.Boolean @Deprecated(since="9") public Boolean(boolean value) ! // java.lang.Thread ! @Deprecated(since="1.5", forRemoval=true) ! public void destroy() Running **jdeprscan** over a class that calls these methods will result in output something like the following: class Example uses method java/lang/Boolean.<init>(Z)V deprecated ! class Example uses method java/lang/Thread.destroy()V deprecated for removal Running **jdeprscan** with the `--list` option will result in output including something like the following: ... @Deprecated(since="9") java.lang.Boolean(boolean) ! @Deprecated(since="1.5", forRemoval=true) void java.lang.Thread.destroy() ... **NOTES** The **jdeprscan** tool operates by opening Java class files and
< prev index next >