langtools/test/com/sun/javadoc/testLiteralCodeInPre/pkg/Test.java
author ihse
Thu, 13 Feb 2014 23:30:08 +0100
changeset 22716 cf32fe2eb254
parent 17545 bfd4d1aa16ae
permissions -rw-r--r--
8034199: Add 'reconfigure' target for re-creating a configuration Reviewed-by: erikj, tbell
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
17545
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
     1
/*
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
     2
 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
     4
 *
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
     7
 * published by the Free Software Foundation.
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
     8
 *
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    13
 * accompanied this code).
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    14
 *
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    18
 *
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    21
 * questions.
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    22
 */
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    23
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    24
package pkg;
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    25
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    26
/** */
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    27
public class Test {
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    28
    /**
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    29
     * abc{@code def}ghi
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    30
     */
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    31
    public void no_pre() { }
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    32
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    33
    /**
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    34
     * abc{@code  def  }ghi
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    35
     */
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    36
    public void no_pre_extra_whitespace() { }
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    37
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    38
    /**
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    39
     * <pre> abc{@code  def  }ghi</pre>
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    40
     */
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    41
    public void in_pre() { }
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    42
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    43
    /**
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    44
     * xyz <pre> abc{@code  def  }ghi</pre>
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    45
     */
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    46
    public void pre_after_text() { }
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    47
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    48
    /**
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    49
     * xyz <pre> pqr </pre> abc{@code  def  }ghi
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    50
     */
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    51
    public void after_pre() { }
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    52
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    53
    /**
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    54
     * xyz <pre> pqr </pre> mno <pre> abc{@code  def  }ghi</pre>
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    55
     */
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    56
    public void back_in_pre() { }
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    57
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    58
    /**
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    59
     * Lorem ipsum dolor sit amet, consectetur adipiscing elit.
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    60
     * Example:  <pre>{@code
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    61
     *   line 1 <T> void m(T t) {
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    62
     *   line 2     // do something with T
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    63
     *   line 3 }
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    64
     * }</pre>
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    65
     * and so it goes.
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    66
     */
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    67
    public void typical_usage_code() { }
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    68
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    69
    /**
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    70
     * Lorem ipsum dolor sit amet, consectetur adipiscing elit.
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    71
     * Example:  <pre>{@literal
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    72
     *   line 1 <T> void m(T t) {
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    73
     *   line 2     // do something with T
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    74
     *   line 3 }
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    75
     * }</pre>
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    76
     * and so it goes.
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    77
     */
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    78
    public void typical_usage_literal() { }
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    79
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    80
    /**
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    81
     * Lorem ipsum dolor sit amet, consectetur adipiscing elit.
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    82
     * Example:  <pre>{@literal
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    83
     *   line 1 <T> void m(T t) {
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    84
     *   line 2     // do something with T
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    85
     *   line 3 } }</pre>
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    86
     * and so it goes.
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    87
     */
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    88
    public void recommended_usage_literal() { }
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    89
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    90
    /**
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    91
     * abc {@code
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    92
     */
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    93
    public void bad_code_no_content() { }
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    94
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    95
    /**
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    96
     * abc {@code abc
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    97
     */
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    98
    public void bad_code_content() { }
bfd4d1aa16ae 8002387: Improve rendered HTML formatting for {@code}
jjg
parents:
diff changeset
    99
}