Skip to content

Commit

Permalink
Remove the final keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
abdolsamad committed Sep 20, 2023
1 parent 31b483f commit cf73c42
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,15 @@ public <C> Context extract(Context context, @Nullable C carrier, TextMapGetter<C
if (carrier != null) {
BaggageBuilder baggageBuilder = Baggage.builder();
for (String key : getter.keys(carrier)) {
final String lowercaseKey = key.toLowerCase(Locale.ROOT);
String lowercaseKey = key.toLowerCase(Locale.ROOT);
if (!lowercaseKey.startsWith(PREFIX_BAGGAGE_HEADER)) {
continue;
}
String value = getter.get(carrier, key);
if (value == null) {
continue;
}
final String baggageKey = lowercaseKey.replace(OtTracePropagator.PREFIX_BAGGAGE_HEADER, "");
String baggageKey = lowercaseKey.replace(OtTracePropagator.PREFIX_BAGGAGE_HEADER, "");
baggageBuilder.put(baggageKey, value);
}
Baggage baggage = baggageBuilder.build();
Expand Down

0 comments on commit cf73c42

Please sign in to comment.