Skip to content

Commit

Permalink
Fixes #10086 - Revisiting ProxyConfiguration.getProxies() (#10116)
Browse files Browse the repository at this point in the history
Removed "for removal" deprecation, added clarifying javadocs.

Signed-off-by: Simone Bordet <[email protected]>
  • Loading branch information
sbordet authored Jul 17, 2023
1 parent c967b10 commit 218c8d0
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,18 @@ public class ProxyConfiguration
private final List<Proxy> proxies = new BlockingArrayQueue<>();

/**
* <p>Returns the list of proxies added to this configuration.</p>
* <p>This method is deprecated because it has historically been
* used to add/remove proxies directly to/from the returned list,
* but this has now been replaced by {@link #addProxy(Proxy)} and
* {@link #removeProxy(Proxy)} instead.</p>
* <p>In the future, this method will return an unmodifiable
* list of proxies just for querying purposes.</p>
*
* @deprecated use {@link #addProxy(Proxy)} and {@link #removeProxy(Proxy)} instead
* @return the forward proxies to use
*/
@Deprecated(forRemoval = true)
@Deprecated
public List<Proxy> getProxies()
{
return proxies;
Expand Down

0 comments on commit 218c8d0

Please sign in to comment.