Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2005-11-30 15:10:01 -0500
committerDarin Wright2005-11-30 15:10:01 -0500
commitfcb98854f990c7996aead25a809ad96c408d31af (patch)
treeac279b2eec80209f38441bafa2b912b5ab260c26 /org.eclipse.ui.console
parentd244b7ecbd8013eeaac0f351f09a1d2c3f5b667c (diff)
downloadeclipse.platform.debug-fcb98854f990c7996aead25a809ad96c408d31af.tar.gz
eclipse.platform.debug-fcb98854f990c7996aead25a809ad96c408d31af.tar.xz
eclipse.platform.debug-fcb98854f990c7996aead25a809ad96c408d31af.zip
Bug 116060 - MessageConsoleStream.println synchronization hazard
Diffstat (limited to 'org.eclipse.ui.console')
-rw-r--r--org.eclipse.ui.console/src/org/eclipse/ui/console/MessageConsoleStream.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/console/MessageConsoleStream.java b/org.eclipse.ui.console/src/org/eclipse/ui/console/MessageConsoleStream.java
index 577c6ddfe..45084ec3a 100644
--- a/org.eclipse.ui.console/src/org/eclipse/ui/console/MessageConsoleStream.java
+++ b/org.eclipse.ui.console/src/org/eclipse/ui/console/MessageConsoleStream.java
@@ -44,7 +44,7 @@ public class MessageConsoleStream extends IOConsoleOutputStream {
*
* @param message message to append
*/
- public void print(String message) {
+ public synchronized void print(String message) {
try {
write(message);
} catch (IOException e) {
@@ -56,7 +56,7 @@ public class MessageConsoleStream extends IOConsoleOutputStream {
/**
* Appends a line separator string to this stream.
*/
- public void println() {
+ public synchronized void println() {
try {
write("\n"); //$NON-NLS-1$
} catch (IOException e) {
@@ -70,7 +70,7 @@ public class MessageConsoleStream extends IOConsoleOutputStream {
*
* @param message message to print
*/
- public void println(String message) {
+ public synchronized void println(String message) {
print(message);
println();
}

Back to the top