Guest User

Untitled

a guest
Jul 12th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. faux@codd:/var/tmp/faux90910.Ip% cat App.java
  2. public class App
  3. {
  4. public static void main( String[] args )
  5. {
  6. System.out.println( "Hello World!" );
  7. new App().foo();
  8. new App().bar();
  9. }
  10.  
  11. /** @deprecated */
  12. @Deprecated
  13. void foo()
  14. {
  15.  
  16. }
  17.  
  18. /** @deprecated */
  19. @Deprecated
  20. void bar()
  21. {
  22.  
  23. }
  24. }
  25.  
  26. faux@codd:/var/tmp/faux90910.Ip% javac -Xlint App.java
  27. faux@codd:/var/tmp/faux90910.Ip% javac -Xlint:deprecation App.java
  28. faux@codd:/var/tmp/faux90910.Ip% javac -version
  29. javac 1.6.0_0-internal
  30. faux@codd:/var/tmp/faux90910.Ip% java -version
  31. java version "1.6.0_0"
  32. OpenJDK Runtime Environment (build 1.6.0_0-b11)
  33. OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode)
  34. faux@codd:/var/tmp/faux90910.Ip%
Add Comment
Please, Sign In to add comment