--- old/modules/graphics/src/main/java/javafx/concurrent/Service.java 2016-05-26 13:01:04.485474253 +0300 +++ new/modules/graphics/src/main/java/javafx/concurrent/Service.java 2016-05-26 13:01:03.464964253 +0300 @@ -101,8 +101,9 @@ * should expose as properties the input parameters to the work to be done. * For example, suppose I wanted to write a Service which read the first line * from any URL and returned it as a String. Such a Service might be defined, - * such that it had a single property, url. It might be implemented + * such that it had a single property, {@code url}. It might be implemented * as: + *

*

  *     public static class FirstLineService extends Service<String> {
  *         private StringProperty url = new SimpleStringProperty(this, "url");
@@ -112,7 +113,7 @@
  *
  *         protected Task createTask() {
  *             final String _url = getUrl();
- *             return new Task<String>() {
+ *             return new Task<String>() {
  *                 protected String call() throws Exception {
  *                     URL u = new URL(_url);
  *                     BufferedReader in = new BufferedReader(
@@ -125,13 +126,12 @@
  *         }
  *     }
  *     
- *

*

* The Service by default uses a thread pool Executor with some unspecified * default or maximum thread pool size. This is done so that naive code * will not completely swamp the system by creating thousands of Threads. *

- * @param + * @param the type of object returned by the Service. * @since JavaFX 2.0 */ public abstract class Service implements Worker, EventTarget {