langtools/test/tools/javac/6520152/T.java
author alundblad
Mon, 18 Apr 2016 21:07:50 +0200
changeset 37633 d16d6d59446d
parent 10 06bc494ca11e
permissions -rw-r--r--
8036952: copyright issues in jdk9/dev/langtools files Summary: Updated copyright notices. Reviewed-by: jjg, jlahoda
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
37633
d16d6d59446d 8036952: copyright issues in jdk9/dev/langtools files
alundblad
parents: 10
diff changeset
     1
/*
d16d6d59446d 8036952: copyright issues in jdk9/dev/langtools files
alundblad
parents: 10
diff changeset
     2
 * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
d16d6d59446d 8036952: copyright issues in jdk9/dev/langtools files
alundblad
parents: 10
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
d16d6d59446d 8036952: copyright issues in jdk9/dev/langtools files
alundblad
parents: 10
diff changeset
     4
 *
d16d6d59446d 8036952: copyright issues in jdk9/dev/langtools files
alundblad
parents: 10
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
d16d6d59446d 8036952: copyright issues in jdk9/dev/langtools files
alundblad
parents: 10
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
d16d6d59446d 8036952: copyright issues in jdk9/dev/langtools files
alundblad
parents: 10
diff changeset
     7
 * published by the Free Software Foundation.
d16d6d59446d 8036952: copyright issues in jdk9/dev/langtools files
alundblad
parents: 10
diff changeset
     8
 *
d16d6d59446d 8036952: copyright issues in jdk9/dev/langtools files
alundblad
parents: 10
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
d16d6d59446d 8036952: copyright issues in jdk9/dev/langtools files
alundblad
parents: 10
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
d16d6d59446d 8036952: copyright issues in jdk9/dev/langtools files
alundblad
parents: 10
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
d16d6d59446d 8036952: copyright issues in jdk9/dev/langtools files
alundblad
parents: 10
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
d16d6d59446d 8036952: copyright issues in jdk9/dev/langtools files
alundblad
parents: 10
diff changeset
    13
 * accompanied this code).
d16d6d59446d 8036952: copyright issues in jdk9/dev/langtools files
alundblad
parents: 10
diff changeset
    14
 *
d16d6d59446d 8036952: copyright issues in jdk9/dev/langtools files
alundblad
parents: 10
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
d16d6d59446d 8036952: copyright issues in jdk9/dev/langtools files
alundblad
parents: 10
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
d16d6d59446d 8036952: copyright issues in jdk9/dev/langtools files
alundblad
parents: 10
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
d16d6d59446d 8036952: copyright issues in jdk9/dev/langtools files
alundblad
parents: 10
diff changeset
    18
 *
d16d6d59446d 8036952: copyright issues in jdk9/dev/langtools files
alundblad
parents: 10
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
d16d6d59446d 8036952: copyright issues in jdk9/dev/langtools files
alundblad
parents: 10
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
d16d6d59446d 8036952: copyright issues in jdk9/dev/langtools files
alundblad
parents: 10
diff changeset
    21
 * questions.
d16d6d59446d 8036952: copyright issues in jdk9/dev/langtools files
alundblad
parents: 10
diff changeset
    22
 */
d16d6d59446d 8036952: copyright issues in jdk9/dev/langtools files
alundblad
parents: 10
diff changeset
    23
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    24
import java.io.Serializable;
06bc494ca11e Initial load
duke
parents:
diff changeset
    25
06bc494ca11e Initial load
duke
parents:
diff changeset
    26
public class T {
06bc494ca11e Initial load
duke
parents:
diff changeset
    27
    public static void main(String[] args) {
06bc494ca11e Initial load
duke
parents:
diff changeset
    28
        T t = new T();
06bc494ca11e Initial load
duke
parents:
diff changeset
    29
        t.createObject();
06bc494ca11e Initial load
duke
parents:
diff changeset
    30
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
    31
06bc494ca11e Initial load
duke
parents:
diff changeset
    32
    public Object createObject() {
06bc494ca11e Initial load
duke
parents:
diff changeset
    33
        return new Serializable() {
06bc494ca11e Initial load
duke
parents:
diff changeset
    34
            void method() {
06bc494ca11e Initial load
duke
parents:
diff changeset
    35
            }
06bc494ca11e Initial load
duke
parents:
diff changeset
    36
        };
06bc494ca11e Initial load
duke
parents:
diff changeset
    37
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
    38
}