You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by gg...@apache.org on 2013/01/16 04:18:24 UTC
svn commit: r1433812 - in
/httpcomponents/httpasyncclient/trunk/httpasyncclient/src:
main/java/org/apache/http/nio/conn/scheme/
test/java/org/apache/http/localserver/
Author: ggregory
Date: Wed Jan 16 03:18:24 2013
New Revision: 1433812
URL: http://svn.apache.org/viewvc?rev=1433812&view=rev
Log:
Fix: replace tabs with spaces.
Modified:
httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/nio/conn/scheme/AsyncScheme.java
httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/nio/conn/scheme/AsyncSchemeRegistry.java
httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/localserver/EchoHandler.java
Modified: httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/nio/conn/scheme/AsyncScheme.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/nio/conn/scheme/AsyncScheme.java?rev=1433812&r1=1433811&r2=1433812&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/nio/conn/scheme/AsyncScheme.java (original)
+++ httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/nio/conn/scheme/AsyncScheme.java Wed Jan 16 03:18:24 2013
@@ -92,8 +92,8 @@ public final class AsyncScheme {
@Override
public final boolean equals(final Object obj) {
if (this == obj) {
- return true;
- }
+ return true;
+ }
if (obj instanceof AsyncScheme) {
AsyncScheme that = (AsyncScheme) obj;
return this.name.equals(that.name)
Modified: httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/nio/conn/scheme/AsyncSchemeRegistry.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/nio/conn/scheme/AsyncSchemeRegistry.java?rev=1433812&r1=1433811&r2=1433812&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/nio/conn/scheme/AsyncSchemeRegistry.java (original)
+++ httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/nio/conn/scheme/AsyncSchemeRegistry.java Wed Jan 16 03:18:24 2013
@@ -98,8 +98,8 @@ public final class AsyncSchemeRegistry {
*/
public final AsyncScheme get(final String name) {
if (name == null) {
- throw new IllegalArgumentException("Name must not be null.");
- }
+ throw new IllegalArgumentException("Name must not be null.");
+ }
// leave it to the caller to use the correct name - all lowercase
//name = name.toLowerCase();
@@ -119,8 +119,8 @@ public final class AsyncSchemeRegistry {
*/
public final AsyncScheme register(final AsyncScheme sch) {
if (sch == null) {
- throw new IllegalArgumentException("Scheme must not be null.");
- }
+ throw new IllegalArgumentException("Scheme must not be null.");
+ }
AsyncScheme old = registeredSchemes.put(sch.getName(), sch);
return old;
@@ -136,8 +136,8 @@ public final class AsyncSchemeRegistry {
*/
public final AsyncScheme unregister(final String name) {
if (name == null) {
- throw new IllegalArgumentException("Name must not be null.");
- }
+ throw new IllegalArgumentException("Name must not be null.");
+ }
// leave it to the caller to use the correct name - all lowercase
//name = name.toLowerCase();
Modified: httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/localserver/EchoHandler.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/localserver/EchoHandler.java?rev=1433812&r1=1433811&r2=1433812&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/localserver/EchoHandler.java (original)
+++ httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/localserver/EchoHandler.java Wed Jan 16 03:18:24 2013
@@ -76,8 +76,8 @@ public class EchoHandler
HttpEntity entity = null;
if (request instanceof HttpEntityEnclosingRequest) {
- entity = ((HttpEntityEnclosingRequest)request).getEntity();
- }
+ entity = ((HttpEntityEnclosingRequest)request).getEntity();
+ }
// For some reason, just putting the incoming entity into
// the response will not work. We have to buffer the message.