# HG changeset patch # User mli # Date 1465432237 25200 # Node ID de92f990074f1cb8fef0560750a2d6d05543c018 # Parent 429c08bd6158b74a1b1d6394cca1714d04493d47 8158881: Doc typo in src/../java/net/URI.java Reviewed-by: chegar, wetmore diff -r 429c08bd6158 -r de92f990074f jdk/src/java.base/share/classes/java/net/URI.java --- a/jdk/src/java.base/share/classes/java/net/URI.java Wed Jun 08 11:28:13 2016 -0700 +++ b/jdk/src/java.base/share/classes/java/net/URI.java Wed Jun 08 17:30:37 2016 -0700 @@ -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 @@ * URIs are: * *
- * {@code http://java.sun.com/j2se/1.3/}* @@ -178,28 +178,28 @@ * normalized. The result, for example, of resolving * *
- * {@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} *
- * {@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 @@ * 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 @@ * 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}. * * *