From 4ce441bf7c90e84aed57eea799e1a903a116c064 Mon Sep 17 00:00:00 2001 From: chegar Date: Mon, 16 May 2011 13:10:59 +0100 Subject: [PATCH] 7042679: Phaser javadoc example does not compile Reviewed-by: dl --- src/share/classes/java/util/concurrent/Phaser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/share/classes/java/util/concurrent/Phaser.java b/src/share/classes/java/util/concurrent/Phaser.java index c4ebe2378..bdafbbb7a 100644 --- a/src/share/classes/java/util/concurrent/Phaser.java +++ b/src/share/classes/java/util/concurrent/Phaser.java @@ -159,7 +159,7 @@ import java.util.concurrent.locks.LockSupport; * void runTasks(List 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() { -- GitLab