Tue, 02 Feb 2010 10:56:10 -0800
6918625: handle annotations on array class literals
Reviewed-by: jjg, darcy
Contributed-by: mali@csail.mit.edu, mernst@cs.washington.edu
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 Byte |
jjg@86 | 27 | { |
jjg@86 | 28 | public static Byte valueOf(byte v) { |
jjg@86 | 29 | return new Byte(v); |
jjg@86 | 30 | } |
jjg@86 | 31 | |
jjg@86 | 32 | public Byte(byte v) { |
jjg@86 | 33 | value = v; |
jjg@86 | 34 | } |
jjg@86 | 35 | |
jjg@86 | 36 | public byte byteValue() { |
jjg@86 | 37 | return value; |
jjg@86 | 38 | } |
jjg@86 | 39 | |
jjg@86 | 40 | private byte value; |
jjg@86 | 41 | } |