File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
sources/net.sf.j2s.java.core/src/java/lang Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -320,7 +320,7 @@ public static void yield() {
320320 */
321321 public static void sleep (long millis ) throws InterruptedException {
322322 JSUtil .notImplemented (null );
323- JSUtil . warn ("SwingJS does not implement Thread.sleep(long)" );
323+ throw new InterruptedException ("SwingJS does not implement Thread.sleep(long)" );
324324 }
325325 /**
326326 * Causes the currently executing thread to sleep (cease execution)
@@ -354,7 +354,7 @@ public static void sleep(long millis, int nanos)
354354 millis ++;
355355 }
356356 JSUtil .notImplemented (null );
357- JSUtil . warn ("SwingJS does not implement Thread.sleep(long,int)" );
357+ throw new InterruptedException ("SwingJS does not implement Thread.sleep(long,int)" );
358358// sleep(millis);
359359 }
360360
You can’t perform that action at this time.
0 commit comments