From 70128c214a158bff217da027d38a4ba705e5cb08 Mon Sep 17 00:00:00 2001 From: Marc Khouzam Date: Fri, 20 Mar 2015 11:11:58 -0400 Subject: [PATCH] Typos Signed-off-by: Marc Khouzam --- .../src/org/eclipse/cdt/dsf/concurrent/AbstractCache.java | 5 ++--- .../src/org/eclipse/cdt/dsf/concurrent/DsfExecutable.java | 4 ++-- .../src/org/eclipse/cdt/dsf/concurrent/Immutable.java | 4 ++-- .../eclipse/cdt/dsf/concurrent/MultiRequestMonitor.java | 4 ++-- .../src/org/eclipse/cdt/dsf/concurrent/RequestCache.java | 7 +++---- .../org/eclipse/cdt/dsf/concurrent/StackTraceWrapper.java | 4 ++-- .../src/org/eclipse/cdt/dsf/concurrent/ThreadSafe.java | 4 ++-- .../org/eclipse/cdt/dsf/datamodel/AbstractDMContext.java | 6 +++--- 8 files changed, 18 insertions(+), 20 deletions(-) diff --git a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/AbstractCache.java b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/AbstractCache.java index 17bcf06979f..2d5c4845f2e 100644 --- a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/AbstractCache.java +++ b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/AbstractCache.java @@ -1,7 +1,5 @@ -package org.eclipse.cdt.dsf.concurrent; - /******************************************************************************* - * Copyright (c) 2008 Wind River Systems, Inc. and others. + * Copyright (c) 2008, 2015 Wind River Systems, Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -10,6 +8,7 @@ package org.eclipse.cdt.dsf.concurrent; * Contributors: * Wind River Systems - initial API and implementation *******************************************************************************/ +package org.eclipse.cdt.dsf.concurrent; import java.util.ArrayList; import java.util.List; diff --git a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/DsfExecutable.java b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/DsfExecutable.java index 7f6564e5e49..462ebb8f219 100644 --- a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/DsfExecutable.java +++ b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/DsfExecutable.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2014 Wind River Systems and others. + * Copyright (c) 2006, 2015 Wind River Systems and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -181,7 +181,7 @@ public class DsfExecutable { // Bug 306982 // Disable the use of finalize() method in DSF runnables tracing to avoid -// a performance penalty in garbage colleciton. +// a performance penalty in garbage collection. // // /** // * Checks to see if the object was executed before being garbage collected. diff --git a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/Immutable.java b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/Immutable.java index cff9355ae92..227f2d4f6bf 100644 --- a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/Immutable.java +++ b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/Immutable.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2009 Wind River Systems and others. + * Copyright (c) 2006, 2015 Wind River Systems and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -17,7 +17,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** - * Annotation idicating that given class is immutable and thus thread-safe. + * Annotation indicating that given class is immutable and thus thread-safe. * This annotation is not automatically inherited by sub-classes, since * sub-classes need to make sure that they are immutable as well. *

diff --git a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/MultiRequestMonitor.java b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/MultiRequestMonitor.java index b6fc604ae0d..509de847578 100644 --- a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/MultiRequestMonitor.java +++ b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/MultiRequestMonitor.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2009 Wind River Systems and others. + * Copyright (c) 2006, 2015 Wind River Systems and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -73,7 +73,7 @@ public class MultiRequestMonitor extends RequestMonito * unnecessary cast by the client. * @param rm Request monitor object to add to the tracker * @return The request monitor that was just added, it allows this method to be used - * inlined in service method calls + * in-lined in service method calls */ public synchronized T add(T rm) { assert !fStatusMap.containsKey(rm); diff --git a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/RequestCache.java b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/RequestCache.java index 636db58b525..78da9c27d2f 100644 --- a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/RequestCache.java +++ b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/RequestCache.java @@ -1,7 +1,5 @@ -package org.eclipse.cdt.dsf.concurrent; - /******************************************************************************* - * Copyright (c) 2008 Wind River Systems, Inc. and others. + * Copyright (c) 2008, 2015 Wind River Systems, Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -10,6 +8,7 @@ package org.eclipse.cdt.dsf.concurrent; * Contributors: * Wind River Systems - initial API and implementation *******************************************************************************/ +package org.eclipse.cdt.dsf.concurrent; import org.eclipse.core.runtime.IStatus; @@ -49,7 +48,7 @@ public abstract class RequestCache extends AbstractCache { protected void handleCompleted() { if (this == fRm) { fRm = null; - // If the requestor canceled the request, then leave the + // If the requester canceled the request, then leave the // cache as is, regardless of how the retrieval completes. // We want the cache to stay in the invalid state so that // it remains functional. The request may have completed diff --git a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/StackTraceWrapper.java b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/StackTraceWrapper.java index 61f6bc1a53f..99bebce27a3 100644 --- a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/StackTraceWrapper.java +++ b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/StackTraceWrapper.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2009 Wind River Systems and others. + * Copyright (c) 2006, 2015 Wind River Systems and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -12,7 +12,7 @@ package org.eclipse.cdt.dsf.concurrent; /** - * Untility class for easy pretty-printing stack traces. Local to the + * Utility class for easy pretty-printing stack traces. Local to the * concurrent package. * * @since 1.0 diff --git a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/ThreadSafe.java b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/ThreadSafe.java index 8648067431c..e843af82e37 100644 --- a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/ThreadSafe.java +++ b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/ThreadSafe.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2009 Wind River Systems and others. + * Copyright (c) 2006, 2015 Wind River Systems and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -18,7 +18,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** - * Annotation idicating that given package, class, method, or field can be + * Annotation indicating that given package, class, method, or field can be * access safely from any thread. If declared on package or type, a field * or method could still be declared with an annotation indicating that it's * not thread-safe. diff --git a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/datamodel/AbstractDMContext.java b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/datamodel/AbstractDMContext.java index c31b08ea23c..d9b36e96b39 100644 --- a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/datamodel/AbstractDMContext.java +++ b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/datamodel/AbstractDMContext.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2010 Wind River Systems and others. + * Copyright (c) 2006, 2015 Wind River Systems and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -56,7 +56,7 @@ abstract public class AbstractDMContext extends PlatformObject this(service.getSession(), parents); } - /** Backward compatiblity constructor */ + /** Backward compatibility constructor */ public AbstractDMContext(String fSessionId, IDMContext[] parents) { this(DsfSession.getSession(fSessionId), parents); } @@ -132,7 +132,7 @@ abstract public class AbstractDMContext extends PlatformObject * standard platform IAdapterManager is not sufficient in * handling adapters for the model context object. This is because * IAdapterManager uses only the class of the adaptable to - * select the correct adapter factoru, while for model context, the + * select the correct adapter factory, while for model context, the * session is equally important. * @see org.eclipse.runtime.IAdapterManager */