changeset 2666:a5eb8f677bd4

8068495: Update the protocol for references of docs.oracle.com to HTTPS in langtools. Reviewed-by: coffeys
author bpatel
date Tue, 13 Jan 2015 12:41:16 -0800
parents 6fc251c9ebac
children 79177246b3db
files src/share/classes/com/sun/source/doctree/package-info.java src/share/classes/com/sun/tools/classfile/BootstrapMethods_attribute.java src/share/classes/com/sun/tools/javac/parser/DocCommentParser.java src/share/classes/com/sun/tools/javac/util/Convert.java test/com/sun/javadoc/testDocRootLink/TestDocRootLink.java
diffstat 5 files changed, 14 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/source/doctree/package-info.java	Wed Jan 14 16:26:31 2015 -0800
+++ b/src/share/classes/com/sun/source/doctree/package-info.java	Tue Jan 13 12:41:16 2015 -0800
@@ -29,7 +29,7 @@
  *
  * @author Jonathan Gibbons
  * @since 1.8
- * @see <a href="http://download.oracle.com/javase/6/docs/technotes/tools/solaris/javadoc.html#javadoctags">http://download.oracle.com/javase/6/docs/technotes/tools/solaris/javadoc.html#javadoctags</a>
+ * @see <a href="https://docs.oracle.com/javase/6/docs/technotes/tools/solaris/javadoc.html#javadoctags">https://docs.oracle.com/javase/6/docs/technotes/tools/solaris/javadoc.html#javadoctags</a>
  */
 @jdk.Exported
 package com.sun.source.doctree;
--- a/src/share/classes/com/sun/tools/classfile/BootstrapMethods_attribute.java	Wed Jan 14 16:26:31 2015 -0800
+++ b/src/share/classes/com/sun/tools/classfile/BootstrapMethods_attribute.java	Tue Jan 13 12:41:16 2015 -0800
@@ -29,7 +29,7 @@
 
 /**
  * See JVMS 4.7.21
- * http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.7.21
+ * https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.7.21
  *
  *  <p><b>This is NOT part of any supported API.
  *  If you write code that depends on this, you do so at your own risk.
--- a/src/share/classes/com/sun/tools/javac/parser/DocCommentParser.java	Wed Jan 14 16:26:31 2015 -0800
+++ b/src/share/classes/com/sun/tools/javac/parser/DocCommentParser.java	Tue Jan 13 12:41:16 2015 -0800
@@ -1039,7 +1039,7 @@
     }
 
     /**
-     * @see <a href="http://docs.oracle.com/javase/7/docs/technotes/tools/solaris/javadoc.html#javadoctags">Javadoc Tags</a>
+     * @see <a href="https://docs.oracle.com/javase/7/docs/technotes/tools/solaris/javadoc.html#javadoctags">Javadoc Tags</a>
      */
     private void initTagParsers() {
         TagParser[] parsers = {
--- a/src/share/classes/com/sun/tools/javac/util/Convert.java	Wed Jan 14 16:26:31 2015 -0800
+++ b/src/share/classes/com/sun/tools/javac/util/Convert.java	Tue Jan 13 12:41:16 2015 -0800
@@ -36,9 +36,9 @@
  *  <p>
  *  See also:
  *  <ul>
- *  <li><a href="http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.4.7">
+ *  <li><a href="https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.4.7">
  *    JVMS 4.4.7 </a></li>
- *  <li><a href="http://docs.oracle.com/javase/7/docs/api/java/io/DataInput.html#modified-utf-8">
+ *  <li><a href="https://docs.oracle.com/javase/7/docs/api/java/io/DataInput.html#modified-utf-8">
       java.io.DataInput: Modified UTF-8 </a></li>
     <li><a href="https://en.wikipedia.org/wiki/UTF-8#Modified_UTF-8">
       Modified UTF-8 (wikipedia) </a></li>
--- a/test/com/sun/javadoc/testDocRootLink/TestDocRootLink.java	Wed Jan 14 16:26:31 2015 -0800
+++ b/test/com/sun/javadoc/testDocRootLink/TestDocRootLink.java	Tue Jan 13 12:41:16 2015 -0800
@@ -60,21 +60,21 @@
     };
     private static final String[][] NEGATED_TEST1 = {
         {BUG_ID + FS + "pkg1" + FS + "C1.html",
-            "<a href=\"http://download.oracle.com/javase/7/docs/technotes/guides/index.html\">"
+            "<a href=\"https://docs.oracle.com/javase/7/docs/technotes/guides/index.html\">"
         },
         {BUG_ID + FS + "pkg1" + FS + "C1.html",
-            "<a href=\"http://download.oracle.com/javase/7/docs/pkg2/C2.html\">"
+            "<a href=\"https://docs.oracle.com/javase/7/docs/pkg2/C2.html\">"
         },
         {BUG_ID + FS + "pkg1" + FS + "package-summary.html",
-            "<a href=\"http://download.oracle.com/javase/7/docs/technotes/guides/index.html\">"
+            "<a href=\"https://docs.oracle.com/javase/7/docs/technotes/guides/index.html\">"
         },
         {BUG_ID + FS + "pkg1" + FS + "package-summary.html",
-            "<a href=\"http://download.oracle.com/javase/7/docs/pkg2/C2.html\">"
+            "<a href=\"https://docs.oracle.com/javase/7/docs/pkg2/C2.html\">"
         }
     };
     private static final String[][] TEST2 = {
         {BUG_ID + "-1" + FS + "pkg2" + FS + "C2.html",
-            "Refer <a href=\"http://download.oracle.com/javase/7/docs/technotes/guides/index.html\">Here</a>"
+            "Refer <a href=\"https://docs.oracle.com/javase/7/docs/technotes/guides/index.html\">Here</a>"
         },
         {BUG_ID + "-1" + FS + "pkg2" + FS + "C2.html",
             "This <a href=\"../pkg1/C1.html\">Here</a> should not be replaced" + NL +
@@ -85,7 +85,7 @@
             " <a href=\"../pkg1/C1.html\">Link 2</a>."
         },
         {BUG_ID + "-1" + FS + "pkg2" + FS + "package-summary.html",
-            "<a href=\"http://download.oracle.com/javase/7/docs/technotes/guides/index.html\">" + NL +
+            "<a href=\"https://docs.oracle.com/javase/7/docs/technotes/guides/index.html\">" + NL +
             "            Test document 1</a>"
         },
         {BUG_ID + "-1" + FS + "pkg2" + FS + "package-summary.html",
@@ -100,13 +100,13 @@
             "<a href=\"../../technotes/guides/index.html\">"
         },
         {BUG_ID + "-1" + FS + "pkg2" + FS + "C2.html",
-            "<a href=\"http://download.oracle.com/javase/7/docs/pkg1/C1.html\">"
+            "<a href=\"https://docs.oracle.com/javase/7/docs/pkg1/C1.html\">"
         },
         {BUG_ID + "-1" + FS + "pkg2" + FS + "package-summary.html",
             "<a href=\"../../technotes/guides/index.html\">"
         },
         {BUG_ID + "-1" + FS + "pkg2" + FS + "package-summary.html",
-            "<a href=\"http://download.oracle.com/javase/7/docs/pkg1/C1.html\">"
+            "<a href=\"https://docs.oracle.com/javase/7/docs/pkg1/C1.html\">"
         }
     };
     private static final String[] ARGS1 =
@@ -115,7 +115,7 @@
     };
     private static final String[] ARGS2 =
             new String[]{
-        "-d", BUG_ID + "-1", "-Xdocrootparent", "http://download.oracle.com/javase/7/docs", "-sourcepath", SRC_DIR, "pkg1", "pkg2"
+        "-d", BUG_ID + "-1", "-Xdocrootparent", "https://docs.oracle.com/javase/7/docs", "-sourcepath", SRC_DIR, "pkg1", "pkg2"
     };
 
     /**