Skip to content

Commit e3e1326

Browse files
author
Steve Powell
committed
Minor JavaDoc warnings and comment updates.
1 parent 16376d4 commit e3e1326

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

src/com/rabbitmq/client/impl/ConsumerDispatcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* Dispatches notifications to a {@link Consumer} on an internally-managed executor service and work
3131
* pool.
3232
* <p/>
33-
* Each {@link Channel} has a single {@link ConsumerDispatcher}, but the executor service and work
33+
* Each {@link Channel} has a single <code>ConsumerDispatcher</code>, but the executor service and work
3434
* pool may be shared with other channels, typically those on the same {@link AMQConnection}.
3535
*/
3636
final class ConsumerDispatcher {

src/com/rabbitmq/utility/IntAllocator.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,22 @@
2828
* <p/><b>Implementation notes:</b>
2929
* <br/>This was originally an ordered chain of non-overlapping Intervals,
3030
* together with a fixed size array cache for freed integers.
31-
* <br/>{@link #reserve()} was expensive in this scheme, whereas in the
32-
* present implementation it is O(1), as is {@link #free()}.
33-
* <br/>Although {@link #allocate()} is slightly slower than O(1) and in the
34-
* worst case could be O(N), the use of the {@link #lastIndex} field
31+
* <br/>{@link #reserve(int)} was expensive in this scheme, whereas in the
32+
* present implementation it is O(1), as is {@link #free(int)}.
33+
* <p>Although {@link #allocate()} is slightly slower than O(1) and in the
34+
* worst case could be O(N), the use of a "<code>lastIndex</code>" field
3535
* for starting the next scan for free integers means this is negligible.
36-
* <br/>The data representation overhead is O(N) where N is the size of the
36+
* </p>
37+
* <p>The data representation overhead is O(N) where N is the size of the
3738
* allocation range. One <code>long</code> is used for every 64 integers in the
3839
* range.
39-
* <br/>Very little Object creation and destruction occurs in use.
40+
* </p>
41+
* <p>Very little Object creation and destruction occurs in use.</p>
4042
*/
4143
public class IntAllocator {
4244

4345
private final int loRange; // the integer bit 0 represents
44-
private final int hiRange; // the integer(+1) the highest bit represents
46+
private final int hiRange; // one more than the integer the highest bit represents
4547
private final int numberOfBits; // relevant in freeSet
4648
private int lastIndex = 0; // for searching for FREE integers
4749
/** A bit is SET in freeSet if the corresponding integer is FREE

0 commit comments

Comments
 (0)