EMMA Coverage Report (generated Sat Feb 02 18:43:55 MSK 2008)
[all classes][net.sourceforge.retroweaver.runtime.java.lang]

COVERAGE SUMMARY FOR SOURCE FILE [Byte_.java]

nameclass, %method, %block, %line, %
Byte_.java100% (1/1)67%  (2/3)91%  (29/32)75%  (6/8)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class Byte_100% (1/1)67%  (2/3)91%  (29/32)75%  (6/8)
Byte_ (): void 0%   (0/1)0%   (0/3)0%   (0/2)
<static initializer> 100% (1/1)100% (23/23)100% (5/5)
valueOf (byte): Byte 100% (1/1)100% (6/6)100% (1/1)

1package net.sourceforge.retroweaver.runtime.java.lang;
2 
3public class Byte_ {
4 
5        private Byte_() {
6                // private constructor
7        }
8 
9        private static Byte[] boxedVals = new Byte[256];
10 
11        // Small lookup table for boxed objects
12        //
13        // The spec says that the range should be from -127 to 128,
14        // but a byte's range is from -128 to 127. Neal Gafter seems to imply
15        // that this is a bug in the spec.
16        static {
17                for (int i = 0; i < 256; ++i) {
18                        byte val = (byte) (i - 128);
19                        boxedVals[i] = new Byte(val); // NOPMD by xlv
20                }
21        }
22 
23        public static Byte valueOf(final byte val) {
24                return boxedVals[val + 128];
25        }
26 
27}

[all classes][net.sourceforge.retroweaver.runtime.java.lang]
EMMA 2.0.8001 (unsupported private build) (C) Vladimir Roubtsov