Skip to content

Commit

Permalink
Make updateNotPropagatedHeaders protected final
Browse files Browse the repository at this point in the history
  • Loading branch information
garyrussell authored and artembilan committed Feb 3, 2018
1 parent 5475474 commit 51397ec
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2014-2017 the original author or authors.
* Copyright 2014-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -131,7 +131,15 @@ public void setNotPropagatedHeaders(String... headers) {
updateNotPropagatedHeaders(headers, false);
}

private void updateNotPropagatedHeaders(String[] headers, boolean merge) {
/**
* Set or replace not propagated headers. Exposed so that subclasses can set specific
* headers in a constructor, since {@link #setNotPropagatedHeaders(String...)} is not
* final.
* @param headers Header patterns to not propagate.
* @param merge true to merge with existing patterns; false to replace.
* @since 5.0.2
*/
protected final void updateNotPropagatedHeaders(String[] headers, boolean merge) {
Set<String> headerPatterns = new HashSet<>();

if (merge && this.notPropagatedHeaders != null) {
Expand Down

0 comments on commit 51397ec

Please sign in to comment.