1 /* 2 * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 package pkg; 25 26 import java.io.File; 27 28 /***************************************************** 29 * {@linkplain java.lang.String Link-Plain to String Class}. 30 ****************************************************/ 31 public class B { 32 /** 33 * A method with html tag the method {@link ClassLoader#getSystemClassLoader() 34 * <b>getSystemClassLoader()</b>} as the parent class loader. 35 */ method1()36 public void method1() {} 37 38 /** 39 * is equivalent to invoking <code>{@link #createTempFile(java.lang.String, 40 * java.lang.String, java.io.File) 41 * createTempFile(prefix, suffix, null)}</code>. 42 * */ method2()43 public void method2() {} 44 45 /** 46 * A required method to satisfy other tests. 47 * @param s1 parameter 48 * @param s2 parameter 49 * @param f parameter 50 */ createTempFile(String s1, String s2, File f)51 public void createTempFile(String s1, String s2, File f){} 52 53 /** 54 * A external links, complicated by whitespace 55 * @see <a href="http://www.ietf.org/rfc/rfc2279.txt"><i>RFC 2279: UTF-8, a 56 * transformation format of ISO 10646</i></a> 57 * @see <a href="http://www.ietf.org/rfc/rfc2373.txt"><i>RFC 2373: IPv6 Addressing 58 * Architecture</i></a> 59 * @see <a href="http://www.ietf.org/rfc/rfc2396.txt"><i>RFC 2396: Uniform 60 * Resource Identifiers (URI): Generic Syntax</i></a> 61 * @see <a href="http://www.ietf.org/rfc/rfc2732.txt"><i>RFC 2732: Format for 62 * Literal IPv6 Addresses in URLs</i></a> 63 * @see <a href="C.html">A nearby file</a> 64 */ externalLink()65 public void externalLink() {} 66 } 67