Permalink
Browse files

Merge pull request #411 from kcooney/please-stop-threadsafe

RunNotifier.pleaseStop() is now thread-safe
  • Loading branch information...
2 parents 3624da3 + 6d551f3 commit 7b47d564b120c92855e9d64536a6c17dc742a4c4 @dsaff dsaff committed Apr 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/org/junit/runner/notification/RunNotifier.java
@@ -21,7 +21,7 @@
public class RunNotifier {
private final List<RunListener> fListeners=
Collections.synchronizedList(new ArrayList<RunListener>());
- private boolean fPleaseStop= false;
+ private volatile boolean fPleaseStop= false;
/** Internal use only
*/

0 comments on commit 7b47d56

Please sign in to comment.