1894 } 1895 public <E extends Enum<E>> 1896 E[] getEnumConstantsShared(Class<E> klass) { 1897 return klass.getEnumConstantsShared(); 1898 } 1899 public void blockedOn(Thread t, Interruptible b) { 1900 t.blockedOn(b); 1901 } 1902 public void registerShutdownHook(int slot, boolean registerShutdownInProgress, Runnable hook) { 1903 Shutdown.add(slot, registerShutdownInProgress, hook); 1904 } 1905 public String newStringUnsafe(char[] chars) { 1906 return new String(chars, true); 1907 } 1908 public Thread newThreadWithAcc(Runnable target, AccessControlContext acc) { 1909 return new Thread(target, acc); 1910 } 1911 public void invokeFinalize(Object o) throws Throwable { 1912 o.finalize(); 1913 } 1914 public void formatUnsignedLong(long val, int shift, char[] buf, int offset, int len) { 1915 Long.formatUnsignedLong(val, shift, buf, offset, len); 1916 } 1917 public void formatUnsignedInt(int val, int shift, char[] buf, int offset, int len) { 1918 Integer.formatUnsignedInt(val, shift, buf, offset, len); 1919 } 1920 }); 1921 } 1922 } | 1894 } 1895 public <E extends Enum<E>> 1896 E[] getEnumConstantsShared(Class<E> klass) { 1897 return klass.getEnumConstantsShared(); 1898 } 1899 public void blockedOn(Thread t, Interruptible b) { 1900 t.blockedOn(b); 1901 } 1902 public void registerShutdownHook(int slot, boolean registerShutdownInProgress, Runnable hook) { 1903 Shutdown.add(slot, registerShutdownInProgress, hook); 1904 } 1905 public String newStringUnsafe(char[] chars) { 1906 return new String(chars, true); 1907 } 1908 public Thread newThreadWithAcc(Runnable target, AccessControlContext acc) { 1909 return new Thread(target, acc); 1910 } 1911 public void invokeFinalize(Object o) throws Throwable { 1912 o.finalize(); 1913 } 1914 public String fastUUID(long lsb, long msb) { 1915 return Long.fastUUID(lsb, msb); 1916 } 1917 }); 1918 } 1919 } |