diff options
author | Mike Rennie | 2013-08-06 17:41:43 +0000 |
---|---|---|
committer | Mike Rennie | 2013-08-06 17:41:43 +0000 |
commit | 58f247e9a0bac266421e37fbd777fff89b8da182 (patch) | |
tree | 5c148da85d3fecb58ea09b161398c0349fdbb0b9 | |
parent | 1d7efe2d382959c32c7e1733aec63c8853a74bc0 (diff) | |
download | eclipse.platform.debug-58f247e9a0bac266421e37fbd777fff89b8da182.tar.gz eclipse.platform.debug-58f247e9a0bac266421e37fbd777fff89b8da182.tar.xz eclipse.platform.debug-58f247e9a0bac266421e37fbd777fff89b8da182.zip |
Bug 414303 - JDT Debug and Ant tests DNF on all platformsI20130807-0800I20130806-2000
Change-Id: I647981a23924dc26e2dedb20cf8c94b39caa43cc
-rw-r--r-- | org.eclipse.ui.console/src/org/eclipse/ui/console/IOConsole.java | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/console/IOConsole.java b/org.eclipse.ui.console/src/org/eclipse/ui/console/IOConsole.java index a28b64ded..ef88148b6 100644 --- a/org.eclipse.ui.console/src/org/eclipse/ui/console/IOConsole.java +++ b/org.eclipse.ui.console/src/org/eclipse/ui/console/IOConsole.java @@ -215,10 +215,8 @@ public class IOConsole extends TextConsole { * notify the partitioner that this console is finished. */ private void checkFinished() { - synchronized (openStreams) { - if (openStreams.isEmpty()) { - partitioner.streamsClosed(); - } + if (openStreams.isEmpty()) { + partitioner.streamsClosed(); } } @@ -266,14 +264,12 @@ public class IOConsole extends TextConsole { //make a copy of the open streams and close them all //a copy is needed as close the streams results in a callback that //removes the streams from the openStreams collection (bug 152794) - synchronized (openStreams) { - List<Closeable> list = new ArrayList<Closeable>(openStreams); - for (Closeable closable : list) { - try { - closable.close(); - } catch (IOException e) { - // e.printStackTrace(); - } + List<Closeable> list = new ArrayList<Closeable>(openStreams); + for (Closeable closable : list) { + try { + closable.close(); + } catch (IOException e) { + // e.printStackTrace(); } } inputStream = null; |