From 7cd42a7466599dbea72baef33450f28a66751337 Mon Sep 17 00:00:00 2001 From: Martin Oberhuber < martin.oberhuber@windriver.com> Date: Fri, 4 Apr 2008 14:58:14 +0000 Subject: [PATCH] [cleanup] Fix typos --- .../control/impl/TerminalInputStream.java | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/terminal/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/control/impl/TerminalInputStream.java b/terminal/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/control/impl/TerminalInputStream.java index 6cd7eff7de0..f0e0aad8078 100644 --- a/terminal/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/control/impl/TerminalInputStream.java +++ b/terminal/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/control/impl/TerminalInputStream.java @@ -7,7 +7,7 @@ * * Contributors: * Michael Scharf (Wind River) - initial API and implementation - * Douglas Lea (Addison Wesley) - [cq:1552] BoundedBufferWithStateTracking adapted to BoundedByteBuffer + * Douglas Lea (Addison Wesley) - [cq:1552] BoundedBufferWithStateTracking adapted to BoundedByteBuffer *******************************************************************************/ package org.eclipse.tm.internal.terminal.control.impl; @@ -22,16 +22,16 @@ import org.eclipse.swt.widgets.Display; /** * The main purpose of this class is to start a runnable in the - * display thread when data is available and to pretend no data + * display thread when data is available and to pretend no data * is available after a given amount of time the runnable is running. * */ public class TerminalInputStream extends InputStream { /** - * The maximum time in milli seconds the {@link #fNotifyChange} runs until + * The maximum time in milliseconds the {@link #fNotifyChange} runs until * {@link #ready()} returns false. */ - private final int fUITimeout; + private final int fUITimeout; /** * The output stream used by the terminal backend to write to the terminal */ @@ -49,7 +49,7 @@ public class TerminalInputStream extends InputStream { * A blocking byte queue. */ private final BoundedByteBuffer fQueue; - + /** * The maximum amount of data read and written in one shot. * The timer cannot interrupt reading this amount of data. @@ -60,14 +60,14 @@ public class TerminalInputStream extends InputStream { // block size must be smaller than the Queue capacity! final int BLOCK_SIZE=64; - + /** - * The runnable that si scheduled in the display tread. Takes care of - * the timeout management. It calls the {@link #fNotifyChange} + * The runnable that is scheduled in the display tread. Takes care of the + * timeout management. It calls the {@link #fNotifyChange} */ // synchronized with fQueue! private Runnable fRunnable; - + /** * Used as flag to indicate that the current runnable * has used enough time in the display thread. @@ -81,23 +81,23 @@ public class TerminalInputStream extends InputStream { /** * A byte bounded buffer used to synchronize the input and the output stream. *

- * Adapted from BoundedBufferWithStateTracking + * Adapted from BoundedBufferWithStateTracking * http://gee.cs.oswego.edu/dl/cpj/allcode.java * http://gee.cs.oswego.edu/dl/cpj/ *

* BoundedBufferWithStateTracking is part of the examples for the book * Concurrent Programming in Java: Design Principles and Patterns by - * Doug Lea (ISBN 0-201-31009-0). Second edition published by - * Addison-Wesley, November 1999. The code is + * Doug Lea (ISBN 0-201-31009-0). Second edition published by + * Addison-Wesley, November 1999. The code is * Copyright(c) Douglas Lea 1996, 1999 and released to the public domain - * and may be used for any purposes whatsoever. + * and may be used for any purposes whatsoever. *

* For some reasons a solution based on * PipedOutputStream/PipedIntputStream * does work *very* slowly: * http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4404700 *

- * + * */ class BoundedByteBuffer { protected final byte[] fBuffer; // the elements @@ -153,17 +153,17 @@ public class TerminalInputStream extends InputStream { } /** - * An output stream that calls {@link TerminalInputStream#textAvailable} + * An output stream that calls {@link TerminalInputStream#textAvailable} * every time data is written to the stream. The data is written to * {@link TerminalInputStream#fQueue}. - * + * */ class TerminalOutputStream extends OutputStream { public void write(byte[] b, int off, int len) throws IOException { try { // optimization to avoid many synchronized // sections: put the data in junks into the - // queue. + // queue. int noff=off; int end=off+len; while(noff0 && n