changeset 11380:e9269493fea9

8069255: Suppress deprecation warnings in jdk.rmic module (jdk repo) Reviewed-by: rriggs
author amlu
date Tue, 10 Feb 2015 12:28:02 -0500
parents 83ddf1c04f4d
children c3c591564cc2
files src/jdk.rmic/share/classes/sun/rmi/rmic/BatchEnvironment.java src/jdk.rmic/share/classes/sun/rmi/rmic/Main.java src/jdk.rmic/share/classes/sun/tools/java/BinaryClass.java src/jdk.rmic/share/classes/sun/tools/java/ClassDefinition.java src/jdk.rmic/share/classes/sun/tools/java/MemberDefinition.java src/jdk.rmic/share/classes/sun/tools/java/Scanner.java
diffstat 6 files changed, 12 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.rmic/share/classes/sun/rmi/rmic/BatchEnvironment.java	Tue Feb 10 11:18:51 2015 +0100
+++ b/src/jdk.rmic/share/classes/sun/rmi/rmic/BatchEnvironment.java	Tue Feb 10 12:28:02 2015 -0500
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1996, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 2015, 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
@@ -61,6 +61,7 @@
  * they are subject to change or removal without notice.
  */
 
+@SuppressWarnings("deprecation")
 public class BatchEnvironment extends sun.tools.javac.BatchEnvironment {
 
     /** instance of Main which created this environment */
--- a/src/jdk.rmic/share/classes/sun/rmi/rmic/Main.java	Tue Feb 10 11:18:51 2015 +0100
+++ b/src/jdk.rmic/share/classes/sun/rmi/rmic/Main.java	Tue Feb 10 12:28:02 2015 -0500
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 2015, 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
@@ -676,7 +676,7 @@
      * Compile a single class.
      * Fallthrough is intentional
      */
-    @SuppressWarnings("fallthrough")
+    @SuppressWarnings({"fallthrough", "deprecation"})
     public boolean compileClass (ClassDeclaration c,
                                  ByteArrayOutputStream buf,
                                  BatchEnvironment env)
--- a/src/jdk.rmic/share/classes/sun/tools/java/BinaryClass.java	Tue Feb 10 11:18:51 2015 +0100
+++ b/src/jdk.rmic/share/classes/sun/tools/java/BinaryClass.java	Tue Feb 10 12:28:02 2015 -0500
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1994, 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 2015, 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
@@ -39,6 +39,7 @@
  * supported API.  Code that depends on them does so at its own risk:
  * they are subject to change or removal without notice.
  */
+@SuppressWarnings("deprecation")
 public final
 class BinaryClass extends ClassDefinition implements Constants {
     BinaryConstantPool cpool;
--- a/src/jdk.rmic/share/classes/sun/tools/java/ClassDefinition.java	Tue Feb 10 11:18:51 2015 +0100
+++ b/src/jdk.rmic/share/classes/sun/tools/java/ClassDefinition.java	Tue Feb 10 12:28:02 2015 -0500
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1994, 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 2015, 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
@@ -41,6 +41,7 @@
  * supported API.  Code that depends on them does so at its own risk:
  * they are subject to change or removal without notice.
  */
+@SuppressWarnings("deprecation")
 public
 class ClassDefinition implements Constants {
 
--- a/src/jdk.rmic/share/classes/sun/tools/java/MemberDefinition.java	Tue Feb 10 11:18:51 2015 +0100
+++ b/src/jdk.rmic/share/classes/sun/tools/java/MemberDefinition.java	Tue Feb 10 12:28:02 2015 -0500
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1994, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 2015, 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
@@ -44,6 +44,7 @@
  * supported API.  Code that depends on them does so at its own risk:
  * they are subject to change or removal without notice.
  */
+@SuppressWarnings("deprecation")
 public
 class MemberDefinition implements Constants {
     protected long where;
--- a/src/jdk.rmic/share/classes/sun/tools/java/Scanner.java	Tue Feb 10 11:18:51 2015 +0100
+++ b/src/jdk.rmic/share/classes/sun/tools/java/Scanner.java	Tue Feb 10 12:28:02 2015 -0500
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1994, 2004, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 2015, 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
@@ -58,6 +58,7 @@
  * @author      Arthur van Hoff
  */
 
+@SuppressWarnings("deprecation")
 public
 class Scanner implements Constants {
     /**