src/share/classes/sun/swing/AccumulativeRunnable.java

Print this page

        

*** 118,127 **** --- 118,128 ---- * <p> * This implementation uses {@see #submit} to send this * {@code Runnable} for execution. * @param args the arguments to accumulate */ + @SafeVarargs public final synchronized void add(T... args) { boolean isSubmitted = true; if (arguments == null) { isSubmitted = false; arguments = new ArrayList<T>();