langtools/test/tools/jdeps/m/Bar.java
author akulyakh
Thu, 21 May 2015 11:41:04 -0700
changeset 30730 d3ce7619db2c
parent 21046 ebf16a1a6328
permissions -rw-r--r--
8076543: Add @modules as needed to the langtools tests Reviewed-by: jjg, shurailine
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
21046
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
     1
/*
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
     2
 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
     4
 *
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
     7
 * published by the Free Software Foundation.
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
     8
 *
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    13
 * accompanied this code).
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    14
 *
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    18
 *
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    21
 * questions.
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    22
 */
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    23
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    24
package m;
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    25
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    26
import java.util.*;
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    27
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    28
@b.B
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    29
public class Bar {
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    30
    public final Set<String> set = new HashSet<>();
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    31
    protected d.D d;
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    32
    private f.F f;
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    33
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    34
    public Bar() {
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    35
        // compact3
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    36
        java.lang.management.ManagementFactory.getRuntimeMXBean();
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    37
    }
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    38
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    39
    protected c.C c() {
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    40
        return new c.C();
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    41
    }
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    42
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    43
    /* package private */ void setF(f.F o) {
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    44
        f = o;
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    45
    }
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    46
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    47
    private g.G g() {
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    48
        return new g.G();
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    49
    }
ebf16a1a6328 8015912: jdeps support to output in dot file format
mchung
parents:
diff changeset
    50
}