From cfc64c64efe49b954c6851e57ea2258987fb95d2 Mon Sep 17 00:00:00 2001 From: Eclipse Platform Bot Date: Fri, 17 Oct 2025 03:44:20 +0000 Subject: [PATCH] Perform clean code of bundles/org.eclipse.text --- .../src/org/eclipse/jface/text/source/AnnotationMap.java | 4 ++-- .../src/org/eclipse/jface/text/source/AnnotationModel.java | 4 ++-- .../src/org/eclipse/jface/text/source/IAnnotationMap.java | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bundles/org.eclipse.text/src/org/eclipse/jface/text/source/AnnotationMap.java b/bundles/org.eclipse.text/src/org/eclipse/jface/text/source/AnnotationMap.java index e27c9a9e129..42e53b8d610 100644 --- a/bundles/org.eclipse.text/src/org/eclipse/jface/text/source/AnnotationMap.java +++ b/bundles/org.eclipse.text/src/org/eclipse/jface/text/source/AnnotationMap.java @@ -64,7 +64,7 @@ public AnnotationMap(int capacity) { * If the lock object is not explicitly set by this method, the annotation map uses its internal * lock object for synchronization. *

- * + * *

* You should not override an existing lock object unless you own that lock object yourself. * Use the existing lock object instead. @@ -85,7 +85,7 @@ public synchronized void setLockObject(Object lockObject) { /** * Lock object used to synchronize concurrent access to the internal map data. - * + * * @return never returns null */ @Override diff --git a/bundles/org.eclipse.text/src/org/eclipse/jface/text/source/AnnotationModel.java b/bundles/org.eclipse.text/src/org/eclipse/jface/text/source/AnnotationModel.java index 8e90654a28c..bb6fe764265 100644 --- a/bundles/org.eclipse.text/src/org/eclipse/jface/text/source/AnnotationModel.java +++ b/bundles/org.eclipse.text/src/org/eclipse/jface/text/source/AnnotationModel.java @@ -342,7 +342,7 @@ protected IAnnotationMap getAnnotationMap() { /** * Subclasses should never return null. Clients should use the lock * object in order to synchronize concurrent access to the internal map data. - * + * * @return never returns null */ @Override @@ -354,7 +354,7 @@ public Object getLockObject() { * Sets the lock object for this object. Subsequent calls to specified methods of this object * are synchronized on this lock object. Which methods are synchronized is specified by the * implementer. - * + * *

* You should not override an existing lock object unless you own that lock object yourself. * Use the existing lock object instead. diff --git a/bundles/org.eclipse.text/src/org/eclipse/jface/text/source/IAnnotationMap.java b/bundles/org.eclipse.text/src/org/eclipse/jface/text/source/IAnnotationMap.java index debc02ebf49..48b97f29576 100644 --- a/bundles/org.eclipse.text/src/org/eclipse/jface/text/source/IAnnotationMap.java +++ b/bundles/org.eclipse.text/src/org/eclipse/jface/text/source/IAnnotationMap.java @@ -79,17 +79,17 @@ public interface IAnnotationMap extends Map, ISynchronizab */ @Override Collection values(); - + /** * Implementers of this interface should never return null. Clients should use the lock * object in order to synchronize concurrent access to the implementer. - * + * * @return the lock object to be used, if no explicit lock object is set, internal one should * be used, therefore never null */ @Override Object getLockObject(); - + /** * Sets the lock object for this object. Subsequent calls to specified methods of this object * are synchronized on this lock object. Which methods are synchronized is specified by the