author | alundblad |
Mon, 18 Apr 2016 21:07:50 +0200 | |
changeset 37633 | d16d6d59446d |
parent 10 | 06bc494ca11e |
permissions | -rw-r--r-- |
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 | 24 |
import java.io.Serializable; |
25 |
||
26 |
public class T { |
|
27 |
public static void main(String[] args) { |
|
28 |
T t = new T(); |
|
29 |
t.createObject(); |
|
30 |
} |
|
31 |
||
32 |
public Object createObject() { |
|
33 |
return new Serializable() { |
|
34 |
void method() { |
|
35 |
} |
|
36 |
}; |
|
37 |
} |
|
38 |
} |