Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
* and Reassembly</a>
*/
final class FrameReassembler extends AtomicBoolean implements Disposable {

private static final long serialVersionUID = -4394598098863449055L;

private static final Logger logger = LoggerFactory.getLogger(FrameReassembler.class);

final IntObjectMap<ByteBuf> headers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public synchronized boolean isEmpty() {

@Override
public synchronized void clear() {
Arrays.fill(keys, (int) 0);
Arrays.fill(keys, 0);
Arrays.fill(values, null);
size = 0;
}
Expand Down Expand Up @@ -331,7 +331,7 @@ public synchronized Set<Entry<Integer, V>> entrySet() {
}

private int objectToKey(Object key) {
return (int) ((Integer) key).intValue();
return ((Integer) key).intValue();
}

/**
Expand Down Expand Up @@ -369,7 +369,7 @@ private int hashIndex(int key) {

/** Returns the hash code for the key. */
private static int hashCode(int key) {
return (int) key;
return key;
}

/** Get the next sequential index after {@code index} and wraps if necessary. */
Expand Down