langtools/test/com/sun/javadoc/testHtmlTableStyles/pkg1/TestTable.java
author tbell
Wed, 19 Oct 2016 07:48:49 -0700
changeset 41632 c599331f6040
parent 25295 bb0339807d3c
permissions -rw-r--r--
8167600: jib make run-test for langtools and intermittent failures on windows-x86 Reviewed-by: ihse
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
20613
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
     1
/*
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
     2
 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
     4
 *
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
     7
 * published by the Free Software Foundation.
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
     8
 *
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    13
 * accompanied this code).
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    14
 *
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    18
 *
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    21
 * questions.
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    22
 */
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    23
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    24
package pkg1;
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    25
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    26
/**
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    27
 * Testing table in documentation comment. In the generated documentation, it
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    28
 * should be displayed as a regular table and not have any styles that the javadoc
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    29
 * generated tables have.
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    30
 *
25295
bb0339807d3c 8048168: update 2 javadoc tests to add summary attribute for table tag
sogoel
parents: 20613
diff changeset
    31
 * <table summary="Summary" border cellpadding=3 cellspacing=1>
20613
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    32
 * <caption>Summary of test table</caption>
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    33
 *  <tr>
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    34
 *    <td></td>
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    35
 *    <td align=center colspan = 2> First Element (Head)</td>
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    36
 *    <td align=center colspan = 2> Last Element (Tail)</td>
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    37
 *  </tr>
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    38
 *  <tr>
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    39
 *    <td></td>
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    40
 *    <td align=center><em>Throws exception</em></td>
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    41
 *    <td align=center><em>Special value</em></td>
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    42
 *    <td align=center><em>Throws exception</em></td>
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    43
 *    <td align=center><em>Special value</em></td>
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    44
 *  </tr>
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    45
 *  <tr>
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    46
 *    <td>Insert</td>
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    47
 *    <td>addFirst(e)</td>
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    48
 *    <td>offerFirst(e)</td>
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    49
 *    <td>addLast(e)</td>
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    50
 *    <td>offerLast(e)</td>
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    51
 *  </tr>
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    52
 *  <tr>
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    53
 *    <td>Remove</td>
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    54
 *    <td>removeFirst()</td>
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    55
 *    <td>pollFirst()</td>
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    56
 *    <td>removeLast()</td>
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    57
 *    <td>pollLast()</td>
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    58
 *  </tr>
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    59
 * </table>
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    60
 */
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    61
public class TestTable
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    62
{
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    63
    /**
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    64
     * Field in Class.
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    65
     */
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    66
    public String field;
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    67
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    68
    /**
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    69
     * Field constant in Class.
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    70
     */
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    71
    public static final int fieldCnst = 0;
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    72
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    73
    /**
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    74
     * Method in Class.
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    75
     */
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    76
    public void methodInClass(int i) {}
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    77
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    78
    /**
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    79
     * Deprecated method in Class.
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    80
     * @deprecated Do not use it.
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    81
     */
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    82
    public void deprMethod() {}
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    83
ab4801a53abb 8008164: Invisible table captions in javadoc-generated html
bpatel
parents:
diff changeset
    84
}