test/tools/javac/synthesize/Integer.java

Thu, 02 Oct 2008 19:58:40 -0700

author
xdono
date
Thu, 02 Oct 2008 19:58:40 -0700
changeset 117
24a47c3062fe
parent 86
3437676858e3
child 554
9d9f26857129
permissions
-rw-r--r--

6754988: Update copyright year
Summary: Update for files that have been modified starting July 2008
Reviewed-by: ohair, tbell

jjg@86 1 /*
xdono@117 2 * Copyright 2007-2008 Sun Microsystems, Inc. All Rights Reserved.
jjg@86 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jjg@86 4 *
jjg@86 5 * This code is free software; you can redistribute it and/or modify it
jjg@86 6 * under the terms of the GNU General Public License version 2 only, as
jjg@86 7 * published by the Free Software Foundation.
jjg@86 8 *
jjg@86 9 * This code is distributed in the hope that it will be useful, but WITHOUT
jjg@86 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jjg@86 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
jjg@86 12 * version 2 for more details (a copy is included in the LICENSE file that
jjg@86 13 * accompanied this code).
jjg@86 14 *
jjg@86 15 * You should have received a copy of the GNU General Public License version
jjg@86 16 * 2 along with this work; if not, write to the Free Software Foundation,
jjg@86 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jjg@86 18 *
jjg@86 19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
jjg@86 20 * CA 95054 USA or visit www.sun.com if you need additional information or
jjg@86 21 * have any questions.
jjg@86 22 */
jjg@86 23
jjg@86 24 package java.lang;
jjg@86 25
jjg@86 26 public class Integer extends Number
jjg@86 27 {
jjg@86 28 public static Integer valueOf(int v) {
jjg@86 29 return new Integer(v);
jjg@86 30 }
jjg@86 31
jjg@86 32 public Integer(int v) {
jjg@86 33 value = v;
jjg@86 34 }
jjg@86 35
jjg@86 36 public int integerValue() {
jjg@86 37 return value;
jjg@86 38 }
jjg@86 39
jjg@86 40 private int value;
jjg@86 41 }

mercurial