Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2011-03-14 15:20:18 -0400
committerSergey Prigogin2011-03-14 15:20:18 -0400
commitd2b90dc58427cc3096d74aeacaefdf45ebc72a59 (patch)
treea999575bc97e9354e11142745d7cdf13727fb15f
parentd17ddfebab19eb38a2ec52ca86f701686947f25d (diff)
downloadorg.eclipse.cdt-d2b90dc58427cc3096d74aeacaefdf45ebc72a59.tar.gz
org.eclipse.cdt-d2b90dc58427cc3096d74aeacaefdf45ebc72a59.tar.xz
org.eclipse.cdt-d2b90dc58427cc3096d74aeacaefdf45ebc72a59.zip
Added a warning about lack of thread safety to Javadoc.
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/IASTNode.java5
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/IASTTranslationUnit.java5
2 files changed, 8 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/IASTNode.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/IASTNode.java
index 145fa18a69..f840a8daf7 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/IASTNode.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/IASTNode.java
@@ -16,7 +16,10 @@ import org.eclipse.cdt.core.parser.IToken;
/**
* This is the root node in the physical AST. A physical node represents a chunk
* of text in the source program.
- *
+ *
+ * Classes implementing this interface are not thread safe.
+ * Even 'get' methods may cause changes to the underlying object.
+ *
* @noimplement This interface is not intended to be implemented by clients.
* @noextend This interface is not intended to be extended by clients.
*/
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/IASTTranslationUnit.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/IASTTranslationUnit.java
index 6226a85694..5471d9406c 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/IASTTranslationUnit.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/IASTTranslationUnit.java
@@ -20,7 +20,10 @@ import org.eclipse.core.runtime.IAdaptable;
/**
* The translation unit represents a compilable unit of source.
- *
+ *
+ * All existing implementations of IASTTranslationUnit are not thread safe.
+ * Even 'get' methods may cause changes to the underlying object.
+ *
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/

Back to the top