jdk/src/share/classes/java/lang/Short.java
changeset 14507 066419d1e732
parent 14503 0729d9e57ed5
child 18546 862067c6481c
--- a/jdk/src/share/classes/java/lang/Short.java	Wed Nov 14 07:08:50 2012 -0800
+++ b/jdk/src/share/classes/java/lang/Short.java	Tue Nov 13 20:02:39 2012 -0800
@@ -471,6 +471,14 @@
     public static final int SIZE = 16;
 
     /**
+     * The number of bytes used to represent a {@code short} value in two's
+     * complement binary form.
+     *
+     * @since 1.8
+     */
+    public static final int BYTES = SIZE / Byte.SIZE;
+
+    /**
      * Returns the value obtained by reversing the order of the bytes in the
      * two's complement representation of the specified {@code short} value.
      *