Browse files

tabs -> spaces; removed trailing whilespaces; updated stylecheck defi…

…nitions

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpasyncclient/trunk@1426562 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent f2ff431 commit 2dc395cb8492caa5f8b46e05396d915d53a44335 @ok2c ok2c committed Dec 28, 2012
View
4 hc-checkstyle.xml
@@ -33,11 +33,11 @@
<module name="FileLength">
<property name="max" value="3000" />
</module>
- <!-- <module name="FileTabCharacter">
+ <module name="FileTabCharacter">
<property name="eachLine" value="true"/>
</module>
<module name="RegexpSingleline">
<property name="format" value="[ \t]+$"/>
<property name="message" value="Trailing whitespace"/>
- </module> -->
+ </module>
</module>
View
2 httpasyncclient/src/examples/org/apache/http/examples/nio/client/ZeroCopyHttpExchange.java
@@ -52,7 +52,7 @@ public static void main(String[] args) throws Exception {
@Override
protected File process(
- final HttpResponse response,
+ final HttpResponse response,
final File file,
final ContentType contentType) throws Exception {
if (response.getStatusLine().getStatusCode() != HttpStatus.SC_OK) {
View
2 ...syncclient/src/main/java/org/apache/http/impl/nio/client/DefaultAsyncRequestDirector.java
@@ -684,7 +684,7 @@ private AsyncSchemeRegistry getSchemeRegistry(final HttpContext context) {
}
return reg;
}
-
+
private HttpRequest createConnectRequest(final HttpRoute route) {
// see RFC 2817, section 5.2 and
// INTERNET-DRAFT: Tunneling TCP based protocols through
View
2 ...asyncclient/src/main/java/org/apache/http/impl/nio/conn/DefaultClientAsyncConnection.java
@@ -80,7 +80,7 @@ public IOSession getIOSession() {
public String getId() {
return this.id;
}
-
+
@Override
protected void onResponseReceived(HttpResponse response) {
if (response != null && this.headerlog.isDebugEnabled()) {
View
8 ...ient/src/main/java/org/apache/http/impl/nio/conn/DefaultClientAsyncConnectionFactory.java
@@ -39,15 +39,15 @@
private final HttpResponseFactory responseFactory;
private final ByteBufferAllocator allocator;
-
+
public DefaultClientAsyncConnectionFactory() {
super();
this.responseFactory = createHttpResponseFactory();
this.allocator = createByteBufferAllocator();
}
-
+
public ClientAsyncConnection create(
- final String id,
+ final String id,
final IOSession iosession,
final HttpParams params) {
return new DefaultClientAsyncConnection(
@@ -61,5 +61,5 @@ protected ByteBufferAllocator createByteBufferAllocator() {
protected HttpResponseFactory createHttpResponseFactory() {
return new DefaultHttpResponseFactory();
}
-
+
}
View
2 ...asyncclient/src/main/java/org/apache/http/impl/nio/conn/DefaultHttpAsyncRoutePlanner.java
@@ -58,7 +58,7 @@ private AsyncSchemeRegistry getSchemeRegistry(final HttpContext context) {
}
return reg;
}
-
+
public HttpRoute determineRoute(
final HttpHost target,
final HttpRequest request,
View
8 ...cclient/src/main/java/org/apache/http/impl/nio/conn/ManagedClientAsyncConnectionImpl.java
@@ -294,10 +294,10 @@ private AsyncSchemeRegistry getSchemeRegistry(final HttpContext context) {
}
return reg;
}
-
+
public synchronized void open(
final HttpRoute route,
- final HttpContext context,
+ final HttpContext context,
final HttpParams params) throws IOException {
HttpPoolEntry entry = ensurePoolEntry();
RouteTracker tracker = entry.getTracker();
@@ -318,8 +318,8 @@ public synchronized void open(
}
ClientAsyncConnection conn = this.connFactory.create(
- "http-outgoing-" + entry.getId(),
- iosession,
+ "http-outgoing-" + entry.getId(),
+ iosession,
params);
iosession.setAttribute(IOEventDispatch.CONNECTION_KEY, conn);
View
2 ...ient/src/main/java/org/apache/http/impl/nio/conn/PoolingClientAsyncConnectionManager.java
@@ -99,7 +99,7 @@ protected void finalize() throws Throwable {
protected ClientAsyncConnectionFactory createClientAsyncConnectionFactory() {
return new DefaultClientAsyncConnectionFactory();
}
-
+
public AsyncSchemeRegistry getSchemeRegistry() {
return this.schemeRegistry;
}
View
4 httpasyncclient/src/main/java/org/apache/http/nio/client/util/HttpAsyncClientUtils.java
@@ -41,7 +41,7 @@ private HttpAsyncClientUtils() {
* connection manager and releases the resources.
* <p>
* Example Code:
- *
+ *
* <pre>
* HttpAsyncClient httpAsyncClient = null;
* try {
@@ -52,7 +52,7 @@ private HttpAsyncClientUtils() {
* HttpAsyncClientUtils.closeQuietly(httpAsyncClient);
* }
* </pre>
- *
+ *
* @param httpAsyncClient
* the HttpAsyncClient to close, may be null or already closed.
*/
View
2 httpasyncclient/src/main/java/org/apache/http/nio/conn/ClientAsyncConnectionFactory.java
@@ -32,5 +32,5 @@
public interface ClientAsyncConnectionFactory {
ClientAsyncConnection create(String id, IOSession iosession, HttpParams params);
-
+
}
View
2 ...rc/test/java/org/apache/http/nio/client/integration/TestClientAuthenticationFallBack.java
@@ -137,7 +137,7 @@ private HttpHost start(
HttpHost target = new HttpHost("localhost", address.getPort(), getSchemeName());
return target;
}
-
+
public class ResponseBasicUnauthorized implements HttpResponseInterceptor {
public void process(
View
2 ...ient/src/test/java/org/apache/http/nio/client/integration/TestClientReauthentication.java
@@ -139,7 +139,7 @@ private HttpHost start(
HttpHost target = new HttpHost("localhost", address.getPort(), getSchemeName());
return target;
}
-
+
public class ResponseBasicUnauthorized implements HttpResponseInterceptor {
public void process(
View
2 ...client/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncClientUtils.java
@@ -106,7 +106,7 @@ private HttpHost start(final HttpAsyncRequestHandlerResolver requestHandlerResol
this.serverHttpProc,
new DefaultConnectionReuseStrategy(),
new DefaultHttpResponseFactory(),
- requestHandlerResolver, expectationVerifier,
+ requestHandlerResolver, expectationVerifier,
this.serverParams);
this.server.start(serviceHandler);
this.httpclient.start();
View
4 httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestRedirects.java
@@ -735,7 +735,7 @@ public void testDefaultHeadersRedirect() throws Exception {
Header header = reqWrapper.getFirstHeader(HTTP.USER_AGENT);
Assert.assertEquals("my-test-client", header.getValue());
}
-
+
static class CrossSiteRedirectService implements HttpRequestHandler {
private final HttpHost host;
@@ -752,7 +752,7 @@ public void handle(
ProtocolVersion ver = request.getRequestLine().getProtocolVersion();
String location;
try {
- URIBuilder uribuilder = new URIBuilder(request.getRequestLine().getUri());
+ URIBuilder uribuilder = new URIBuilder(request.getRequestLine().getUri());
uribuilder.setScheme(this.host.getSchemeName());
uribuilder.setHost(this.host.getHostName());
uribuilder.setPort(this.host.getPort());

0 comments on commit 2dc395c

Please sign in to comment.