Skip to content

Commit 0af8f39

Browse files
committed
Reduce visibility of some private class' methods
Javadoc
1 parent b8decf8 commit 0af8f39

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,37 +135,37 @@ private ObjectDeque(final boolean fairness) {
135135
/**
136136
* Gets all the objects for the current key.
137137
*
138-
* @return All the objects
138+
* @return All the objects.
139139
*/
140-
public Map<IdentityWrapper<S>, PooledObject<S>> getAllObjects() {
140+
Map<IdentityWrapper<S>, PooledObject<S>> getAllObjects() {
141141
return allObjects;
142142
}
143143

144144
/**
145145
* Gets the number of instances created - number destroyed.
146146
* Should always be less than or equal to maxTotalPerKey.
147147
*
148-
* @return The net instance addition count for this deque
148+
* @return The net instance addition count for this deque.
149149
*/
150-
public AtomicInteger getCreateCount() {
150+
AtomicInteger getCreateCount() {
151151
return createCount;
152152
}
153153

154154
/**
155155
* Gets the idle objects for the current key.
156156
*
157-
* @return The idle objects
157+
* @return The idle objects.
158158
*/
159-
public LinkedBlockingDeque<PooledObject<S>> getIdleObjects() {
159+
LinkedBlockingDeque<PooledObject<S>> getIdleObjects() {
160160
return idleObjects;
161161
}
162162

163163
/**
164164
* Gets the number of threads with an interest registered in this key.
165165
*
166-
* @return The number of threads with a registered interest in this key
166+
* @return The number of threads with a registered interest in this key.
167167
*/
168-
public AtomicLong getNumInterested() {
168+
AtomicLong getNumInterested() {
169169
return numInterested;
170170
}
171171

src/main/java/org/apache/commons/pool2/impl/InterruptibleReentrantLock.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@ final class InterruptibleReentrantLock extends ReentrantLock {
3737
* Constructs a new InterruptibleReentrantLock with the given fairness policy.
3838
*
3939
* @param fairness true means threads should acquire contended locks as if
40-
* waiting in a FIFO queue
40+
* waiting in a FIFO queue.
4141
*/
4242
InterruptibleReentrantLock(final boolean fairness) {
4343
super(fairness);
4444
}
4545

4646
/**
47-
* Interrupts the threads that are waiting on a specific condition
47+
* Interrupts the threads that are waiting on a specific condition.
4848
*
4949
* @param condition the condition on which the threads are waiting.
5050
*/
51-
public void interruptWaiters(final Condition condition) {
51+
void interruptWaiters(final Condition condition) {
5252
getWaitingThreads(condition).forEach(Thread::interrupt);
5353
}
5454
}

0 commit comments

Comments
 (0)