make/jdk/src/classes/build/tools/cldrconverter/CopyrightHeaders.java
author pliden
Tue, 18 Sep 2018 22:46:35 +0200
changeset 51794 4129f43607cb
parent 47216 71c04702a3d5
permissions -rw-r--r--
8210753: Make ThreadLocalAllocBuffer::resize() public Reviewed-by: eosterlund, jcbeyler
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
     1
/*
39644
4d04bb90a87c 8154797: Localization data for "GMT"
rgoel
parents: 31263
diff changeset
     2
 * Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
     4
 *
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    10
 *
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    15
 * accompanied this code).
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    16
 *
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    20
 *
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    23
 * questions.
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    24
 */
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    25
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    26
package build.tools.cldrconverter;
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    27
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    28
import java.util.Calendar;
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    29
import java.util.GregorianCalendar;
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    30
import java.util.Locale;
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    31
import java.util.TimeZone;
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    32
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    33
class CopyrightHeaders {
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    34
    private static final String ORACLE2012 =
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    35
        "/*\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    36
        " * Copyright (c) %d, Oracle and/or its affiliates. All rights reserved.\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    37
        " */\n";
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    38
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    39
    private static final String ORACLE_AFTER2012 =
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    40
        "/*\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    41
        " * Copyright (c) 2012, %d, Oracle and/or its affiliates. All rights reserved.\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    42
        " */\n";
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    43
39644
4d04bb90a87c 8154797: Localization data for "GMT"
rgoel
parents: 31263
diff changeset
    44
    // Last updated:  - 6/06/2016, 1:42:31 PM
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    45
    private static final String UNICODE =
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    46
        "/*\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    47
        " * COPYRIGHT AND PERMISSION NOTICE\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    48
        " *\n" +
39644
4d04bb90a87c 8154797: Localization data for "GMT"
rgoel
parents: 31263
diff changeset
    49
        " * Copyright (C) 1991-2016 Unicode, Inc. All rights reserved.\n" +
31263
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    50
        " * Distributed under the Terms of Use in \n" +
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    51
        " * http://www.unicode.org/copyright.html.\n" +
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    52
        " *\n" +
31263
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    53
        " * Permission is hereby granted, free of charge, to any person obtaining\n" +
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    54
        " * a copy of the Unicode data files and any associated documentation\n" +
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    55
        " * (the \"Data Files\") or Unicode software and any associated documentation\n" +
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    56
        " * (the \"Software\") to deal in the Data Files or Software\n" +
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    57
        " * without restriction, including without limitation the rights to use,\n" +
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    58
        " * copy, modify, merge, publish, distribute, and/or sell copies of\n" +
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    59
        " * the Data Files or Software, and to permit persons to whom the Data Files\n" +
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    60
        " * or Software are furnished to do so, provided that\n" +
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    61
        " * (a) this copyright and permission notice appear with all copies \n" +
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    62
        " * of the Data Files or Software,\n" +
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    63
        " * (b) this copyright and permission notice appear in associated \n" +
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    64
        " * documentation, and\n" +
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    65
        " * (c) there is clear notice in each modified Data File or in the Software\n" +
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    66
        " * as well as in the documentation associated with the Data File(s) or\n" +
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    67
        " * Software that the data or software has been modified.\n" +
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    68
        " *\n" +
31263
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    69
        " * THE DATA FILES AND SOFTWARE ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF\n" +
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    70
        " * ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE\n" +
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    71
        " * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n" +
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    72
        " * NONINFRINGEMENT OF THIRD PARTY RIGHTS.\n" +
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    73
        " * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS\n" +
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    74
        " * NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL\n" +
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    75
        " * DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,\n" +
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    76
        " * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\n" +
31263
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    77
        " * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n" +
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    78
        " * PERFORMANCE OF THE DATA FILES OR SOFTWARE.\n" +
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    79
        " *\n" +
31263
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    80
        " * Except as contained in this notice, the name of a copyright holder\n" +
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    81
        " * shall not be used in advertising or otherwise to promote the sale,\n" +
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    82
        " * use or other dealings in these Data Files or Software without prior\n" +
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    83
        " * written authorization of the copyright holder.\n" +
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    84
        " */\n";
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    85
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    86
    private static String OPENJDK2012 =
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    87
        "/*\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    88
        " * Copyright (c) %d, Oracle and/or its affiliates. All rights reserved.\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    89
        " * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    90
        " *\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    91
        " * This code is free software; you can redistribute it and/or modify it\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    92
        " * under the terms of the GNU General Public License version 2 only, as\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    93
        " * published by the Free Software Foundation.  Oracle designates this\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    94
        " * particular file as subject to the \"Classpath\" exception as provided\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    95
        " * by Oracle in the LICENSE file that accompanied this code.\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    96
        " *\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    97
        " * This code is distributed in the hope that it will be useful, but WITHOUT\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    98
        " * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
    99
        " * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   100
        " * version 2 for more details (a copy is included in the LICENSE file that\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   101
        " * accompanied this code).\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   102
        " *\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   103
        " * You should have received a copy of the GNU General Public License version\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   104
        " * 2 along with this work; if not, write to the Free Software Foundation,\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   105
        " * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   106
        " *\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   107
        " * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   108
        " * or visit www.oracle.com if you need additional information or have any\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   109
        " * questions.\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   110
        " */\n";
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   111
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   112
    private static String OPENJDK_AFTER2012 =
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   113
        "/*\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   114
        " * Copyright (c) 2012, %d, Oracle and/or its affiliates. All rights reserved.\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   115
        " * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   116
        " *\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   117
        " * This code is free software; you can redistribute it and/or modify it\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   118
        " * under the terms of the GNU General Public License version 2 only, as\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   119
        " * published by the Free Software Foundation.  Oracle designates this\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   120
        " * particular file as subject to the \"Classpath\" exception as provided\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   121
        " * by Oracle in the LICENSE file that accompanied this code.\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   122
        " *\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   123
        " * This code is distributed in the hope that it will be useful, but WITHOUT\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   124
        " * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   125
        " * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   126
        " * version 2 for more details (a copy is included in the LICENSE file that\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   127
        " * accompanied this code).\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   128
        " *\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   129
        " * You should have received a copy of the GNU General Public License version\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   130
        " * 2 along with this work; if not, write to the Free Software Foundation,\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   131
        " * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   132
        " *\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   133
        " * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   134
        " * or visit www.oracle.com if you need additional information or have any\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   135
        " * questions.\n" +
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   136
        " */\n";
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   137
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   138
    static String getOracleCopyright() {
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   139
        int year = getYear();
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   140
        return String.format(year > 2012 ? ORACLE_AFTER2012 : ORACLE2012, year);
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   141
    }
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   142
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   143
    static String getUnicodeCopyright() {
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   144
        return UNICODE;
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   145
    }
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   146
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   147
    static String getOpenJDKCopyright() {
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   148
        int year = getYear();
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   149
        return String.format(year > 2012 ? OPENJDK_AFTER2012 : OPENJDK2012, year);
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   150
    }
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   151
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   152
    private static int getYear() {
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   153
        return new GregorianCalendar(TimeZone.getTimeZone("America/Los_Angeles"),
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   154
                                         Locale.US).get(Calendar.YEAR);
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   155
    }
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   156
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   157
    // no instantiation
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   158
    private CopyrightHeaders() {
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   159
    }
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   160
}
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents:
diff changeset
   161