Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[router] Refactored several allocation-heavy paths in Alpini #827

Merged
merged 1 commit into from
Jan 26, 2024
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 @@ -4,7 +4,6 @@
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Optional;


/**
Expand Down Expand Up @@ -51,8 +50,6 @@ default Headers set(Iterable<Map.Entry<String, String>> entries) {

Iterator<Map.Entry<CharSequence, CharSequence>> iteratorCharSequence();

<T> Optional<T> unwrap(Class<T> type);

Headers EMPTY_HEADERS = new Headers() {
@Override
public boolean isEmpty() {
Expand Down Expand Up @@ -99,11 +96,6 @@ public Iterator<Map.Entry<CharSequence, CharSequence>> iteratorCharSequence() {
return Collections.emptyIterator();
}

@Override
public <T> Optional<T> unwrap(Class<T> type) {
return Optional.empty();
}

@Override
public Iterator<Map.Entry<String, String>> iterator() {
return Collections.emptyIterator();
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.linkedin.alpini.router.api;
package com.linkedin.alpini.base.misc;

/**
* @author Antony T Curtis {@literal <[email protected]>}
Expand Down
Loading