Skip to content

Commit c78d261

Browse files
rubenporrasmerks
authored andcommitted
fix typo and remove any extra whitespace at the end of line
1 parent 8cfc94c commit c78d261

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

plugins/org.eclipse.emf.common/src/org/eclipse/emf/common/util/Pool.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* to support multiple simultaneous readers while ensuring that writes are properly serial.
2525
* The locks are held for the minimal period to allow maximal concurrency.
2626
* Removals, i.e., {@link #remove(Object) remove}, {@link #removeAll(Collection) removeAll}, {@link #clear() clear}, and {@link #retainAll(Collection) retainAll}, are not supported.
27-
*
27+
*
2828
* @since 2.9
2929
*/
3030
public class Pool<E> extends WeakInterningHashSet<E>
@@ -105,25 +105,25 @@ protected abstract static class Queue<E> extends AtomicReference<AccessUnit<E>>
105105
@Override
106106
protected E getValue()
107107
{
108-
throw new UnsupportedOperationException();
108+
throw new UnsupportedOperationException();
109109
}
110110

111111
@Override
112112
protected void setValue(E value)
113113
{
114-
throw new UnsupportedOperationException();
114+
throw new UnsupportedOperationException();
115115
}
116116

117117
@Override
118118
protected boolean setArbitraryValue(Object value)
119119
{
120-
throw new UnsupportedOperationException();
120+
throw new UnsupportedOperationException();
121121
}
122122

123123
@Override
124-
public void reset(boolean isExclusive)
124+
public void reset(boolean isExclusive)
125125
{
126-
throw new UnsupportedOperationException();
126+
throw new UnsupportedOperationException();
127127
}
128128
};
129129

@@ -774,7 +774,7 @@ protected final void access(boolean isReadLocked, AccessUnit<E> accessUnit)
774774

775775
// Periodically poll the queue to clean up garbage collected entries.
776776
// It doesn't matter that this access count increment isn't thread safe, it just means we might take a little longer to poll the queue.
777-
// Note that cleanup will acquire the write lock, so we mustn't call if if we're holding the read lock.
777+
// Note that cleanup will acquire the write lock, so we mustn't call if we're holding the read lock.
778778
//
779779
if (!isReadLocked && internalQueue != null && ++accessCount == cleanupPeriod)
780780
{

plugins/org.eclipse.emf.common/src/org/eclipse/emf/common/util/WeakInterningHashSet.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public class WeakInterningHashSet<E> extends AbstractSet<E> implements Internin
119119
/**
120120
* A queue used when {@link #newExternalEntry(Object, int) creating} external entries and subsequently for cleaning garbage collected references.
121121
* {@link SelfCleaningEntry#clear() Cleaning} garbage collected references is the responsibility of this external queue provider.
122-
* All calls to {@link #cleanup()} are guarded by whether {@link #internalQueue} value is <code>null</code>, so no cleanup takes plac when there is an external reference queue.
122+
* All calls to {@link #cleanup()} are guarded by whether {@link #internalQueue} value is <code>null</code>, so no cleanup takes place when there is an external reference queue.
123123
*/
124124
transient final protected ReferenceQueue<Object> externalQueue;
125125

@@ -991,7 +991,7 @@ protected void putEntry(int index, Entry<E> entry)
991991

992992
/**
993993
* Adds a new entry to the set at the given given index in the {@link #entries}.
994-
* It {@link #ensureCapacity() ensures} the capacity is sufficient,
994+
* It {@link #ensureCapacity() ensures} the capacity is sufficient,
995995
* increases the {@link #size} of the set, increments the {@link #modCount},
996996
* and {@link #putEntry(int, Entry) puts} the entry into the set.
997997
*/

0 commit comments

Comments
 (0)