Tiny optimization
This commit is contained in:
parent
2f601dcbaf
commit
1a04586b54
@ -634,12 +634,8 @@ public class HttpHeaders {
|
|||||||
// Update the hash table.
|
// Update the hash table.
|
||||||
Entry e = entries[i];
|
Entry e = entries[i];
|
||||||
Entry newEntry;
|
Entry newEntry;
|
||||||
if (e == null) {
|
entries[i] = newEntry = new Entry(h, name, value);
|
||||||
entries[i] = newEntry = new Entry(h, name, value);
|
newEntry.next = e;
|
||||||
} else {
|
|
||||||
entries[i] = newEntry = new Entry(h, name, value);
|
|
||||||
newEntry.next = e;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update the linked list.
|
// Update the linked list.
|
||||||
newEntry.addBefore(head);
|
newEntry.addBefore(head);
|
||||||
|
Loading…
Reference in New Issue
Block a user