From abf7117cde050e0a6f6a7bf09acf70bd45bdc2ad Mon Sep 17 00:00:00 2001 From: Hamlin Li Date: Wed, 8 Jun 2016 17:30:37 -0700 Subject: [PATCH] 8158881: Doc typo in src/../java/net/URI.java Reviewed-by: chegar, wetmore --- .../java.base/share/classes/java/net/URI.java | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/jdk/src/java.base/share/classes/java/net/URI.java b/jdk/src/java.base/share/classes/java/net/URI.java index 069aedb685f..97d8937f53d 100644 --- a/jdk/src/java.base/share/classes/java/net/URI.java +++ b/jdk/src/java.base/share/classes/java/net/URI.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2016, 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 @@ -92,9 +92,9 @@ import java.lang.NullPointerException; // for javadoc * URIs are: * *
- * {@code http://java.sun.com/j2se/1.3/}
- * {@code docs/guide/collections/designfaq.html#28}
- * {@code ../../../demo/jfc/SwingSet2/src/SwingSet2.java}
+ * {@code http://example.com/languages/java/}
+ * {@code sample/a/index.html#28}
+ * {@code ../../demo/b/index.html}
* {@code file:///~/calendar} *
* @@ -178,28 +178,28 @@ import java.lang.NullPointerException; // for javadoc * normalized. The result, for example, of resolving * *
- * {@code docs/guide/collections/designfaq.html#28} + * {@code sample/a/index.html#28} *              *     (1) *
* - * against the base URI {@code http://java.sun.com/j2se/1.3/} is the result + * against the base URI {@code http://example.com/languages/java/} is the result * URI * *
- * {@code http://docs.oracle.com/javase/1.3/docs/guide/collections/designfaq.html#28} + * {@code http://example.com/languages/java/sample/a/index.html#28} *
* * Resolving the relative URI * *
- * {@code ../../../demo/jfc/SwingSet2/src/SwingSet2.java}    (2) + * {@code ../../demo/b/index.html}    (2) *
* * against this result yields, in turn, * *
- * {@code http://java.sun.com/j2se/1.3/demo/jfc/SwingSet2/src/SwingSet2.java} + * {@code http://example.com/languages/java/demo/b/index.html} *
* * Resolution of both absolute and relative URIs, and of both absolute and @@ -210,7 +210,7 @@ import java.lang.NullPointerException; // for javadoc * URI * *
- * {@code demo/jfc/SwingSet2/src/SwingSet2.java} + * {@code demo/b/index.html} *
* *

Relativization, finally, is the inverse of resolution: For any @@ -226,16 +226,16 @@ import java.lang.NullPointerException; // for javadoc * possible. For example, relativizing the URI * *

- * {@code http://docs.oracle.com/javase/1.3/docs/guide/index.html} + * {@code http://example.com/languages/java/sample/a/index.html#28} *
* * against the base URI * *
- * {@code http://java.sun.com/j2se/1.3} + * {@code http://example.com/languages/java/} *
* - * yields the relative URI {@code docs/guide/index.html}. + * yields the relative URI {@code sample/a/index.html#28}. * * *

Character categories