Here you can find the source of sleepQuietly(long millis)
InterruptedException
.
public static long sleepQuietly(long millis)
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); public class Main { /**//from www . j av a 2s .c om * Sleeps for the specified number of milliseconds, catching and ignoring * any <code>InterruptedException</code>. Returns the number of milliseconds * actually slept. * * @since 1.0.5 */ public static long sleepQuietly(long millis) { long start = System.currentTimeMillis(); try { Thread.sleep(millis); } catch (InterruptedException ignored) { // ignored } return System.currentTimeMillis() - start; } }