Tiny optimization

This commit is contained in:
Trustin Lee 2010-02-19 02:40:55 +00:00
parent 2f601dcbaf
commit 1a04586b54

View File

@ -634,12 +634,8 @@ public class HttpHeaders {
// Update the hash table.
Entry e = entries[i];
Entry newEntry;
if (e == null) {
entries[i] = newEntry = new Entry(h, name, value);
} else {
entries[i] = newEntry = new Entry(h, name, value);
newEntry.next = e;
}
entries[i] = newEntry = new Entry(h, name, value);
newEntry.next = e;
// Update the linked list.
newEntry.addBefore(head);