langtools/test/tools/doclint/EmptyPreTest.java
author naoto
Tue, 29 Mar 2016 17:06:33 -0700
changeset 36739 145210aba850
parent 30730 d3ce7619db2c
permissions -rw-r--r--
8152704: jlink command line output/help message improvement Reviewed-by: mchung
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16562
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
     1
/*
30730
d3ce7619db2c 8076543: Add @modules as needed to the langtools tests
akulyakh
parents: 16562
diff changeset
     2
 * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
16562
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
     4
 *
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
     7
 * published by the Free Software Foundation.
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
     8
 *
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    13
 * accompanied this code).
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    14
 *
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    18
 *
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    21
 * questions.
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    22
 */
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    23
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    24
/*
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    25
 * @test
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    26
 * @bug 8010317
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    27
 * @summary DocLint incorrectly reports some <pre> tags as empty
30730
d3ce7619db2c 8076543: Add @modules as needed to the langtools tests
akulyakh
parents: 16562
diff changeset
    28
 * @modules jdk.compiler/com.sun.tools.doclint
16562
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    29
 * @build DocLintTester
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    30
 * @run main DocLintTester -Xmsgs:html EmptyPreTest.java
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    31
 */
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    32
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    33
public class EmptyPreTest {
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    34
    /** <pre> {@code xyzzy} </pre> */
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    35
    public void m1() { }
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    36
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    37
    /** <pre> {@docRoot} </pre> */
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    38
    public void m2() { }
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    39
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    40
    /** <pre> {@link java.lang.String} </pre> */
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    41
    public void m3() { }
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    42
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    43
    /** <pre> {@value} </pre> */
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    44
    public static final int v1 = 1;
9f09744e221a 8010317: DocLint incorrectly reports some <pre> tags as empty
jjg
parents:
diff changeset
    45
}