"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "httpclient/src/test/java/org/apache/http/impl/client/MockConnPoolControl.java" between
httpcomponents-client-4.5.6-src.tar.gz and httpcomponents-client-4.5.7-src.tar.gz

About: HttpComponents is an Apache project responsible for creating and maintaining a toolset of low level Java components focused on HTTP and associated protocols. Java sources.

MockConnPoolControl.java  (httpcomponents-client-4.5.6-src):MockConnPoolControl.java  (httpcomponents-client-4.5.7-src)
skipping to change at line 88 skipping to change at line 88
} }
@Override @Override
public void setMaxPerRoute(final HttpRoute route, final int max) { public void setMaxPerRoute(final HttpRoute route, final int max) {
this.maxPerHostMap.put(route, Integer.valueOf(max)); this.maxPerHostMap.put(route, Integer.valueOf(max));
} }
@Override @Override
public int getMaxPerRoute(final HttpRoute route) { public int getMaxPerRoute(final HttpRoute route) {
final Integer max = this.maxPerHostMap.get(route); final Integer max = this.maxPerHostMap.get(route);
if (max != null) { return max != null ? max.intValue() : this.defaultMax;
return max.intValue();
} else {
return this.defaultMax;
}
} }
public void setMaxForRoutes(final Map<HttpRoute, Integer> map) { public void setMaxForRoutes(final Map<HttpRoute, Integer> map) {
if (map == null) { if (map == null) {
return; return;
} }
this.maxPerHostMap.clear(); this.maxPerHostMap.clear();
this.maxPerHostMap.putAll(map); this.maxPerHostMap.putAll(map);
} }
 End of changes. 1 change blocks. 
5 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)