7042679: Phaser javadoc example does not compile
authorchegar
Mon, 16 May 2011 13:10:59 +0100
changeset 9697 2abc44607cf6
parent 9696 27cd7f6cbc4e
child 9698 8b66cd6c5ebc
7042679: Phaser javadoc example does not compile Reviewed-by: dl
jdk/src/share/classes/java/util/concurrent/Phaser.java
--- a/jdk/src/share/classes/java/util/concurrent/Phaser.java	Sat May 14 14:55:11 2011 -0700
+++ b/jdk/src/share/classes/java/util/concurrent/Phaser.java	Mon May 16 13:10:59 2011 +0100
@@ -159,7 +159,7 @@
  * void runTasks(List<Runnable> tasks) {
  *   final Phaser phaser = new Phaser(1); // "1" to register self
  *   // create and start threads
- *   for (Runnable task : tasks) {
+ *   for (final Runnable task : tasks) {
  *     phaser.register();
  *     new Thread() {
  *       public void run() {