--- old/src/java.desktop/share/classes/sun/swing/AccumulativeRunnable.java 2015-06-03 15:08:36.239625616 +0400 +++ new/src/java.desktop/share/classes/sun/swing/AccumulativeRunnable.java 2015-06-03 15:08:36.007625616 +0400 @@ -49,10 +49,10 @@ *
* Here is how one can do this using {@code AccumulativeRunnable}: *
- * AccumulativeRunnabledoSetTextImpl = - * new AccumulativeRunnable () { - * @Override - * protected void run(List<String> args) { + * {@code AccumulativeRunnable doSetTextImpl = + * new AccumulativeRunnable ()} { + * {@literal @Override} + * {@code protected void run(List args)} { * //set to the last string being passed * setTextImpl(args.get(args.size() - 1)); * } @@ -66,16 +66,16 @@ * * Say we want to implement addDirtyRegion(Rectangle rect) * which sends this region to the - * handleDirtyRegions(List
regiouns) on the EDT. + * {@code handleDirtyRegions(List regiouns)} on the EDT. * addDirtyRegions better be accumulated before handling on the EDT. * * * Here is how it can be implemented using AccumulativeRunnable: *
- * AccumulativeRunnabledoHandleDirtyRegions = - * new AccumulativeRunnable () { - * @Override - * protected void run(List<Rectangle> args) { + * {@code AccumulativeRunnable doHandleDirtyRegions =} + * {@code new AccumulativeRunnable ()} { + * {@literal @Override} + * {@code protected void run(List args)} { * handleDirtyRegions(args); * } * }; @@ -113,7 +113,7 @@ } /** - * appends arguments and sends this {@cod Runnable} for the + * appends arguments and sends this {@code Runnable} for the * execution if needed. * * This implementation uses {@see #submit} to send this