1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-06 08:35:26 +02:00

[cleanup] Fix Copyright Year

This commit is contained in:
Martin Oberhuber 2008-04-17 10:13:57 +00:00
parent ff0ff7d4a0
commit 65cd604525
2 changed files with 20 additions and 20 deletions
org.eclipse.tm.terminal.test/src/org/eclipse/tm/internal/terminal/connector
org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/connector

View file

@ -1,11 +1,11 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2007 Wind River Systems, Inc. and others. * Copyright (c) 2008 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html * http://www.eclipse.org/legal/epl-v10.html
* *
* Contributors: * Contributors:
* Michael Scharf (Wind River) - initial API and implementation * Michael Scharf (Wind River) - initial API and implementation
*******************************************************************************/ *******************************************************************************/
package org.eclipse.tm.internal.terminal.connector; package org.eclipse.tm.internal.terminal.connector;
@ -38,7 +38,7 @@ public class TerminalToRemoteInjectionOutputStreamTest extends TestCase {
fOriginal.write(b,off,len); fOriginal.write(b,off,len);
fOriginal.write(']'); fOriginal.write(']');
} }
} }
class NullInterceptor extends TerminalToRemoteInjectionOutputStream.Interceptor { class NullInterceptor extends TerminalToRemoteInjectionOutputStream.Interceptor {
} }
@ -53,7 +53,7 @@ public class TerminalToRemoteInjectionOutputStreamTest extends TestCase {
os1.write('y'); os1.write('y');
s.write('B'); s.write('B');
os1.close(); os1.close();
s.write('-'); s.write('-');
OutputStream os=s.grabOutput(); OutputStream os=s.grabOutput();
// make sure the closed output does not inject anything // make sure the closed output does not inject anything
@ -91,7 +91,7 @@ public class TerminalToRemoteInjectionOutputStreamTest extends TestCase {
s.write('B'); s.write('B');
s.close(); s.close();
assertEquals("begin:xyAB", new String(bs.toByteArray(),ENCODING)); assertEquals("begin:xyAB", new String(bs.toByteArray(),ENCODING));
} }
public void testWriteByteArray() { public void testWriteByteArray() {

View file

@ -1,11 +1,11 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2007 Wind River Systems, Inc. and others. * Copyright (c) 2008 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html * http://www.eclipse.org/legal/epl-v10.html
* *
* Contributors: * Contributors:
* Michael Scharf (Wind River) - initial API and implementation * Michael Scharf (Wind River) - initial API and implementation
*******************************************************************************/ *******************************************************************************/
package org.eclipse.tm.internal.terminal.connector; package org.eclipse.tm.internal.terminal.connector;
@ -43,7 +43,7 @@ class TerminalToRemoteInjectionOutputStream extends FilterOutputStream {
public void write(byte[] b, int off, int len) throws IOException { public void write(byte[] b, int off, int len) throws IOException {
} }
/** /**
* The injection into the normal stream ends. * The injection into the normal stream ends.
* @throws IOException * @throws IOException
*/ */
public void close() throws IOException { public void close() throws IOException {
@ -115,10 +115,10 @@ class TerminalToRemoteInjectionOutputStream extends FilterOutputStream {
} }
} }
/** /**
* There can only be one injection stream active at a time. You must call close on the * There can only be one injection stream active at a time. You must call close on the
* returned output stream to end the injection. * returned output stream to end the injection.
* @param interceptor This is used handle bytes sent while the injection stream is active. * @param interceptor This is used handle bytes sent while the injection stream is active.
* @return a output stream that can be used to write to the decorated stream. * @return a output stream that can be used to write to the decorated stream.
* @throws IOException * @throws IOException
*/ */
public synchronized OutputStream grabOutput(Interceptor interceptor) throws IOException { public synchronized OutputStream grabOutput(Interceptor interceptor) throws IOException {