< prev index next >

src/share/classes/javax/swing/TimerQueue.java

Print this page
rev 1527 : 6727662: Code improvement and warnings removing from swing packages
Summary: Removed unnecessary castings and other warnings
Reviewed-by: malenkov

*** 94,104 **** } try { final ThreadGroup threadGroup = AppContext.getAppContext().getThreadGroup(); java.security.AccessController.doPrivileged( ! new java.security.PrivilegedAction() { public Object run() { Thread timerThread = new Thread(threadGroup, TimerQueue.this, "TimerQueue"); timerThread.setDaemon(true); timerThread.setPriority(Thread.NORM_PRIORITY); --- 94,104 ---- } try { final ThreadGroup threadGroup = AppContext.getAppContext().getThreadGroup(); java.security.AccessController.doPrivileged( ! new java.security.PrivilegedAction<Object>() { public Object run() { Thread timerThread = new Thread(threadGroup, TimerQueue.this, "TimerQueue"); timerThread.setDaemon(true); timerThread.setPriority(Thread.NORM_PRIORITY);
*** 230,240 **** } /** * Returns nanosecond time offset by origin */ ! private final static long now() { return System.nanoTime() - NANO_ORIGIN; } static class DelayedTimer implements Delayed { // most of it copied from --- 230,240 ---- } /** * Returns nanosecond time offset by origin */ ! private static long now() { return System.nanoTime() - NANO_ORIGIN; } static class DelayedTimer implements Delayed { // most of it copied from
< prev index next >