You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by se...@apache.org on 2008/02/01 22:05:40 UTC

svn commit: r617645 - in /httpcomponents/httpclient/trunk/module-client/src: examples/org/apache/http/examples/client/ main/java/org/apache/http/conn/ main/java/org/apache/http/cookie/ main/java/org/apache/http/impl/client/ main/java/org/apache/http/im...

Author: sebb
Date: Fri Feb  1 13:05:31 2008
New Revision: 617645

URL: http://svn.apache.org/viewvc?rev=617645&view=rev
Log:
Fixup odd tab usage

Modified:
    httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/client/ClientFormLogin.java
    httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/client/ClientMultiThreadedExecution.java
    httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/conn/ConnectTimeoutException.java
    httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/cookie/CookieOrigin.java
    httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/client/DefaultHttpRequestRetryHandler.java
    httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/cookie/DateUtils.java
    httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/client/protocol/TestRedirects.java
    httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/client/protocol/TestUriEscapes.java
    httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/conn/TestScheme.java
    httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/client/TestBasicCredentialsProvider.java
    httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/cookie/TestCookieBestMatchSpec.java
    httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/cookie/TestDateUtils.java

Modified: httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/client/ClientFormLogin.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/client/ClientFormLogin.java?rev=617645&r1=617644&r2=617645&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/client/ClientFormLogin.java (original)
+++ httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/client/ClientFormLogin.java Fri Feb  1 13:05:31 2008
@@ -76,9 +76,9 @@
         }
         
         HttpPost httpost = new HttpPost("https://portal.sun.com/amserver/UI/Login?" +
-        		"org=self_registered_users&" +
-        		"goto=/portal/dt&" +
-        		"gotoOnFail=/portal/dt?error=true");
+                "org=self_registered_users&" +
+                "goto=/portal/dt&" +
+                "gotoOnFail=/portal/dt?error=true");
         
         NameValuePair[] nvps = new NameValuePair[] {
                 new BasicNameValuePair("IDToken1", "username"),

Modified: httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/client/ClientMultiThreadedExecution.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/client/ClientMultiThreadedExecution.java?rev=617645&r1=617644&r2=617645&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/client/ClientMultiThreadedExecution.java (original)
+++ httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/client/ClientMultiThreadedExecution.java Fri Feb  1 13:05:31 2008
@@ -100,7 +100,7 @@
     
     /**
      * A thread that performs a GET.
-	 */
+     */
     static class GetThread extends Thread {
         
         private HttpClient httpClient;

Modified: httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/conn/ConnectTimeoutException.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/conn/ConnectTimeoutException.java?rev=617645&r1=617644&r2=617645&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/conn/ConnectTimeoutException.java (original)
+++ httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/conn/ConnectTimeoutException.java Fri Feb  1 13:05:31 2008
@@ -44,7 +44,7 @@
 public class ConnectTimeoutException extends InterruptedIOException {
 
     private static final long serialVersionUID = -4816682903149535989L;
-	
+
     /**
      * Creates a ConnectTimeoutException with a <tt>null</tt> detail message.
      */

Modified: httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/cookie/CookieOrigin.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/cookie/CookieOrigin.java?rev=617645&r1=617644&r2=617645&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/cookie/CookieOrigin.java (original)
+++ httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/cookie/CookieOrigin.java Fri Feb  1 13:05:31 2008
@@ -40,13 +40,13 @@
  */
 public final class CookieOrigin {
 
-	private final String host;
-	private final int port;
-	private final String path;
-	private final boolean secure;
-	
-	public CookieOrigin(final String host, int port, final String path, boolean secure) {
-		super();
+    private final String host;
+    private final int port;
+    private final String path;
+    private final boolean secure;
+    
+    public CookieOrigin(final String host, int port, final String path, boolean secure) {
+        super();
         if (host == null) {
             throw new IllegalArgumentException(
                     "Host of origin may not be null");
@@ -62,31 +62,31 @@
             throw new IllegalArgumentException(
                     "Path of origin may not be null.");
         }
-		this.host = host.toLowerCase();
-		this.port = port;
+        this.host = host.toLowerCase();
+        this.port = port;
         if (!path.trim().equals("")) {
             this.path = path;
         } else {
             this.path = "/";
         }
-		this.secure = secure;
-	}
+        this.secure = secure;
+    }
 
-	public String getHost() {
-		return this.host;
-	}
+    public String getHost() {
+        return this.host;
+    }
 
-	public String getPath() {
-		return this.path;
-	}
+    public String getPath() {
+        return this.path;
+    }
 
-	public int getPort() {
-		return this.port;
-	}
+    public int getPort() {
+        return this.port;
+    }
 
-	public boolean isSecure() {
-		return this.secure;
-	}
+    public boolean isSecure() {
+        return this.secure;
+    }
 
     @Override
     public String toString() {

Modified: httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/client/DefaultHttpRequestRetryHandler.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/client/DefaultHttpRequestRetryHandler.java?rev=617645&r1=617644&r2=617645&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/client/DefaultHttpRequestRetryHandler.java (original)
+++ httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/client/DefaultHttpRequestRetryHandler.java Fri Feb  1 13:05:31 2008
@@ -50,7 +50,7 @@
  */
 public class DefaultHttpRequestRetryHandler implements HttpRequestRetryHandler {
 
-	/** the number of times a method will be retried */
+    /** the number of times a method will be retried */
     private int retryCount;
     
     /** Whether or not methods that have successfully sent their request will be retried */

Modified: httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/cookie/DateUtils.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/cookie/DateUtils.java?rev=617645&r1=617644&r2=617645&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/cookie/DateUtils.java (original)
+++ httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/cookie/DateUtils.java Fri Feb  1 13:05:31 2008
@@ -68,9 +68,9 @@
     public static final String PATTERN_ASCTIME = "EEE MMM d HH:mm:ss yyyy";
 
     private static final String[] DEFAULT_PATTERNS = new String[] { 
-    	PATTERN_ASCTIME, 
-    	PATTERN_RFC1036, 
-    	PATTERN_RFC1123 };
+        PATTERN_ASCTIME, 
+        PATTERN_RFC1036, 
+        PATTERN_RFC1123 };
     
     private static final Date DEFAULT_TWO_DIGIT_YEAR_START;
     
@@ -138,7 +138,7 @@
             throw new IllegalArgumentException("dateValue is null");
         }
         if (dateFormats == null) {
-        	dateFormats = DEFAULT_PATTERNS;
+            dateFormats = DEFAULT_PATTERNS;
         }
         if (startDate == null) {
             startDate = DEFAULT_TWO_DIGIT_YEAR_START;
@@ -153,8 +153,8 @@
         }
         
         for (int i = 0; i < dateFormats.length; i++) {
-        	SimpleDateFormat dateParser = DateFormatHolder.formatFor(dateFormats[i]);
-        	dateParser.set2DigitYearStart(startDate);
+            SimpleDateFormat dateParser = DateFormatHolder.formatFor(dateFormats[i]);
+            dateParser.set2DigitYearStart(startDate);
 
             try {
                 return dateParser.parse(dateValue);

Modified: httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/client/protocol/TestRedirects.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/client/protocol/TestRedirects.java?rev=617645&r1=617644&r2=617645&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/client/protocol/TestRedirects.java (original)
+++ httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/client/protocol/TestRedirects.java Fri Feb  1 13:05:31 2008
@@ -91,8 +91,8 @@
 
     private class BasicRedirectService implements HttpRequestHandler {
         
-		private int statuscode = HttpStatus.SC_MOVED_TEMPORARILY;
-		private String host = null;
+        private int statuscode = HttpStatus.SC_MOVED_TEMPORARILY;
+        private String host = null;
         private int port;
 
         public BasicRedirectService(final String host, int port, int statuscode) {
@@ -100,7 +100,7 @@
             this.host = host;
             this.port = port;
             if (statuscode > 0) {
-            	this.statuscode = statuscode;
+                this.statuscode = statuscode;
             }
         }
 
@@ -117,7 +117,7 @@
             if (uri.equals("/oldlocation/")) {
                 response.setStatusLine(ver, this.statuscode);
                 response.addHeader(new BasicHeader("Location", 
-                		"http://" + this.host + ":" + this.port + "/newlocation/"));
+                        "http://" + this.host + ":" + this.port + "/newlocation/"));
                 response.addHeader(new BasicHeader("Connection", "close"));
             } else if (uri.equals("/newlocation/")) {
                 response.setStatusLine(ver, HttpStatus.SC_OK);

Modified: httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/client/protocol/TestUriEscapes.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/client/protocol/TestUriEscapes.java?rev=617645&r1=617644&r2=617645&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/client/protocol/TestUriEscapes.java (original)
+++ httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/client/protocol/TestUriEscapes.java Fri Feb  1 13:05:31 2008
@@ -1,7 +1,7 @@
 /*
- * $HeadURL:$
- * $Revision:$
- * $Date:$
+ * $HeadURL$
+ * $Revision$
+ * $Date$
  * ====================================================================
  *
  *  Licensed to the Apache Software Foundation (ASF) under one or more
@@ -48,7 +48,7 @@
 import org.apache.http.protocol.HttpRequestHandler;
 
 public class TestUriEscapes extends ServerTestBase {
-	
+
     public TestUriEscapes(final String testName) throws IOException {
         super(testName);
     }
@@ -78,80 +78,80 @@
         }
         
         public String getRequestedUri() {
-        	return requestedUri;
+            return requestedUri;
         }
     }
     
     private void doTest(String uri, boolean relative) throws Exception {
-    	int port = this.localServer.getServicePort();
-		String host = "localhost";
-	    UriListeningService listener = new UriListeningService();
-	    this.localServer.register("*", listener);
-	    
+        int port = this.localServer.getServicePort();
+        String host = "localhost";
+        UriListeningService listener = new UriListeningService();
+        this.localServer.register("*", listener);
+        
         DefaultHttpClient client = new DefaultHttpClient(); 
         HttpResponse response;
 
         if(!relative) {
-		    String request = "http://" + host + ":" + port + uri;
-		    HttpGet httpget = new HttpGet(request); 
-		    response = client.execute(httpget);
-	        response.getEntity().consumeContent();  
-	    } else {
-	    	HttpHost target = new HttpHost(host, port);
-		    HttpGet httpget = new HttpGet(uri); 
-		    response = client.execute(target, httpget);
-	        response.getEntity().consumeContent();  
-	    }
+            String request = "http://" + host + ":" + port + uri;
+            HttpGet httpget = new HttpGet(request); 
+            response = client.execute(httpget);
+            response.getEntity().consumeContent();  
+        } else {
+            HttpHost target = new HttpHost(host, port);
+            HttpGet httpget = new HttpGet(uri); 
+            response = client.execute(target, httpget);
+            response.getEntity().consumeContent();  
+        }
         
         assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode());       
         assertEquals(uri, listener.getRequestedUri());
     }
-	
+    
     public void testEscapedAmpersandInQueryAbsolute() throws Exception {
-    	doTest("/path/a=b&c=%26d", false);
+        doTest("/path/a=b&c=%26d", false);
     }
     
     public void testEscapedAmpersandInQueryRelative() throws Exception {
-    	doTest("/path/a=b&c=%26d", true);
+        doTest("/path/a=b&c=%26d", true);
     }
     
     public void testPlusInPathAbsolute() throws Exception {
-    	doTest("/path+go", false);
-	}
+        doTest("/path+go", false);
+    }
     
     public void testPlusInPathRelative() throws Exception {
-    	doTest("/path+go", true);
-	}
+        doTest("/path+go", true);
+    }
     
     public void testEscapedSpaceInPathAbsolute() throws Exception {
-    	doTest("/path%20go?a=b&c=d", false);
-	}
+        doTest("/path%20go?a=b&c=d", false);
+    }
     
     public void testEscapedSpaceInPathRelative() throws Exception {
-    	doTest("/path%20go?a=b&c=d", true);
-	}
+        doTest("/path%20go?a=b&c=d", true);
+    }
     
     public void testEscapedAmpersandInPathAbsolute() throws Exception {
-    	doTest("/this%26that?a=b&c=d", false);
-	}
+        doTest("/this%26that?a=b&c=d", false);
+    }
     
     public void testEscapedAmpersandInPathRelative() throws Exception {
-    	doTest("/this%26that?a=b&c=d", true);
-	}
+        doTest("/this%26that?a=b&c=d", true);
+    }
     
     public void testEscapedSpaceInQueryAbsolute() throws Exception {
-    	doTest("/path?a=b&c=d%20e", false);
+        doTest("/path?a=b&c=d%20e", false);
     }
     
     public void testEscapedSpaceInQueryRelative() throws Exception {
-    	doTest("/path?a=b&c=d%20e", true);
+        doTest("/path?a=b&c=d%20e", true);
     }
     
     public void testPlusInQueryAbsolute() throws Exception {
-    	doTest("/path?a=b&c=d+e", false);
+        doTest("/path?a=b&c=d+e", false);
     }
     
     public void testPlusInQueryRelative() throws Exception {
-    	doTest("/path?a=b&c=d+e", true);
+        doTest("/path?a=b&c=d+e", true);
     }
 }

Modified: httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/conn/TestScheme.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/conn/TestScheme.java?rev=617645&r1=617644&r2=617645&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/conn/TestScheme.java (original)
+++ httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/conn/TestScheme.java Fri Feb  1 13:05:31 2008
@@ -126,24 +126,24 @@
         HttpHost host  = new HttpHost("www.test.invalid", -1, "http");
         HttpHost hosts = new HttpHost("www.test.invalid", -1, "https");
 
-    	assertNull(schmreg.register(myhttp));
-    	assertNull(schmreg.register(https));
-    	assertSame(myhttp, schmreg.register(http));
-    	assertSame(http, schmreg.getScheme("http"));
-    	assertSame(http, schmreg.getScheme(host));
-    	assertSame(https, schmreg.getScheme("https"));
-    	assertSame(https, schmreg.getScheme(hosts));
+        assertNull(schmreg.register(myhttp));
+        assertNull(schmreg.register(https));
+        assertSame(myhttp, schmreg.register(http));
+        assertSame(http, schmreg.getScheme("http"));
+        assertSame(http, schmreg.getScheme(host));
+        assertSame(https, schmreg.getScheme("https"));
+        assertSame(https, schmreg.getScheme(hosts));
 
-    	schmreg.unregister("http");
-    	schmreg.unregister("https");
+        schmreg.unregister("http");
+        schmreg.unregister("https");
 
         assertNull(schmreg.get("http")); // get() does not throw exception
-    	try {
+        try {
             schmreg.getScheme("http"); // getScheme() does throw exception
             fail("IllegalStateException should have been thrown");
-    	} catch (IllegalStateException ex) {
+        } catch (IllegalStateException ex) {
             // expected
-    	}
+        }
     }
 
 
@@ -160,8 +160,8 @@
             ("https", SecureSocketFactoryMockup.INSTANCE, 443);
         //  ("https", SSLSocketFactory.getSocketFactory(), 443);
 
-    	schmreg.register(http);
-    	schmreg.register(https);
+        schmreg.register(http);
+        schmreg.register(https);
 
         names = schmreg.getSchemeNames();
         assertNotNull(names);
@@ -198,34 +198,34 @@
     public void testIllegalRegisterUnregister() {
         SchemeRegistry schmreg = new SchemeRegistry();
         try {
-        	schmreg.register(null);
-        	fail("IllegalArgumentException should have been thrown");
+            schmreg.register(null);
+            fail("IllegalArgumentException should have been thrown");
         } catch (IllegalArgumentException ex) {
-        	// expected
+            // expected
         }
         try {
-        	schmreg.unregister(null);
-        	fail("IllegalArgumentException should have been thrown");
+            schmreg.unregister(null);
+            fail("IllegalArgumentException should have been thrown");
         } catch (IllegalArgumentException ex) {
-        	// expected
+            // expected
         }
         try {
-        	schmreg.get(null);
-        	fail("IllegalArgumentException should have been thrown");
+            schmreg.get(null);
+            fail("IllegalArgumentException should have been thrown");
         } catch (IllegalArgumentException ex) {
-        	// expected
+            // expected
         }
         try {
-        	schmreg.getScheme((String)null);
-        	fail("IllegalArgumentException should have been thrown");
+            schmreg.getScheme((String)null);
+            fail("IllegalArgumentException should have been thrown");
         } catch (IllegalArgumentException ex) {
-        	// expected
+            // expected
         }
         try {
-        	schmreg.getScheme((HttpHost)null);
-        	fail("IllegalArgumentException should have been thrown");
+            schmreg.getScheme((HttpHost)null);
+            fail("IllegalArgumentException should have been thrown");
         } catch (IllegalArgumentException ex) {
-        	// expected
+            // expected
         }
     }
     

Modified: httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/client/TestBasicCredentialsProvider.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/client/TestBasicCredentialsProvider.java?rev=617645&r1=617644&r2=617645&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/client/TestBasicCredentialsProvider.java (original)
+++ httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/client/TestBasicCredentialsProvider.java Fri Feb  1 13:05:31 2008
@@ -98,8 +98,8 @@
 
     public void testBasicCredentialsProviderDefaultCredentials() {
         BasicCredentialsProvider state = new BasicCredentialsProvider();
-	    state.setCredentials(AuthScope.ANY, CREDS1);
-	    state.setCredentials(SCOPE2, CREDS2);
+        state.setCredentials(AuthScope.ANY, CREDS1);
+        state.setCredentials(SCOPE2, CREDS2);
         assertEquals(CREDS1, state.getCredentials(BOGUS));
     }
 

Modified: httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/cookie/TestCookieBestMatchSpec.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/cookie/TestCookieBestMatchSpec.java?rev=617645&r1=617644&r2=617645&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/cookie/TestCookieBestMatchSpec.java (original)
+++ httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/cookie/TestCookieBestMatchSpec.java Fri Feb  1 13:05:31 2008
@@ -1,7 +1,7 @@
 /*
- * $HeadURL:$
- * $Revision:$
- * $Date:$
+ * $HeadURL$
+ * $Revision$
+ * $Date$
  * ====================================================================
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -50,7 +50,7 @@
  *
  * @author <a href="mailto:oleg@ural.ru">Oleg Kalnichevski</a>
  * 
- * @version $Revision:$
+ * @version $Revision$
  */
 public class TestCookieBestMatchSpec extends TestCase {
 
@@ -218,8 +218,8 @@
         
         Header header = headers.get(0);
         assertEquals("$Version=1; name1=\"value1\"; $Path=\"/\"; $Domain=\".domain.com\"; " +
-        		"name2=\"value2\"; $Path=\"/\"; $Domain=\".domain.com\"", 
-        		header.getValue());
+                "name2=\"value2\"; $Path=\"/\"; $Domain=\".domain.com\"", 
+                header.getValue());
         
     }
 

Modified: httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/cookie/TestDateUtils.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/cookie/TestDateUtils.java?rev=617645&r1=617644&r2=617645&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/cookie/TestDateUtils.java (original)
+++ httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/cookie/TestDateUtils.java Fri Feb  1 13:05:31 2008
@@ -65,41 +65,41 @@
         calendar.set(Calendar.MILLISECOND, 0);
         Date date1 = calendar.getTime(); 
         
-    	String[] formats = new String[] {
-    			DateUtils.PATTERN_RFC1123		
-    			};
-    	Date date2 = DateUtils.parseDate("Fri, 14 Oct 2005 00:00:00 GMT", formats, null);
-    	assertEquals(date1, date2);
-    	date2 = DateUtils.parseDate("Fri, 14 Oct 2005 00:00:00 GMT", formats);
-    	assertEquals(date1, date2);
-    	date2 = DateUtils.parseDate("Fri, 14 Oct 2005 00:00:00 GMT");
-    	assertEquals(date1, date2);
+        String[] formats = new String[] {
+                DateUtils.PATTERN_RFC1123
+                };
+        Date date2 = DateUtils.parseDate("Fri, 14 Oct 2005 00:00:00 GMT", formats, null);
+        assertEquals(date1, date2);
+        date2 = DateUtils.parseDate("Fri, 14 Oct 2005 00:00:00 GMT", formats);
+        assertEquals(date1, date2);
+        date2 = DateUtils.parseDate("Fri, 14 Oct 2005 00:00:00 GMT");
+        assertEquals(date1, date2);
     }
 
     public void testInvalidInput() throws Exception {
         try {
-        	DateUtils.parseDate(null, null, null);
+            DateUtils.parseDate(null, null, null);
             fail("IllegalArgumentException should habe been thrown");
         } catch (IllegalArgumentException ex) {
-        	// expected
+            // expected
         }
         try {
-        	DateUtils.parseDate("Fri, 14 Oct 2005 00:00:00 GMT", new String[] {}, null);
+            DateUtils.parseDate("Fri, 14 Oct 2005 00:00:00 GMT", new String[] {}, null);
             fail("DateParseException should habe been thrown");
         } catch (DateParseException ex) {
-        	// expected
+            // expected
         }
         try {
-        	DateUtils.formatDate(null);
+            DateUtils.formatDate(null);
             fail("IllegalArgumentException should habe been thrown");
         } catch (IllegalArgumentException ex) {
-        	// expected
+            // expected
         }
         try {
-        	DateUtils.formatDate(new Date(), null);
+            DateUtils.formatDate(new Date(), null);
             fail("IllegalArgumentException should habe been thrown");
         } catch (IllegalArgumentException ex) {
-        	// expected
+            // expected
         }
     }
     
@@ -110,11 +110,11 @@
         calendar.set(Calendar.MILLISECOND, 0);
         Date date1 = calendar.getTime(); 
         
-    	String[] formats = new String[] {
-    			DateUtils.PATTERN_RFC1036		
-    			};
-    	Date date2 = DateUtils.parseDate("Friday, 14-Oct-05 00:00:00 GMT", formats, null);
-    	assertEquals(date1, date2);
+        String[] formats = new String[] {
+                DateUtils.PATTERN_RFC1036
+                };
+        Date date2 = DateUtils.parseDate("Friday, 14-Oct-05 00:00:00 GMT", formats, null);
+        assertEquals(date1, date2);
 
         calendar.set(1900, Calendar.JANUARY, 0, 0, 0, 0);
         calendar.set(Calendar.MILLISECOND, 0);
@@ -123,9 +123,9 @@
         calendar.set(1905, Calendar.OCTOBER, 14, 0, 0, 0);
         calendar.set(Calendar.MILLISECOND, 0);
         date1 = calendar.getTime(); 
-    	
-    	date2 = DateUtils.parseDate("Friday, 14-Oct-05 00:00:00 GMT", formats, startDate);
-    	assertEquals(date1, date2);
+        
+        date2 = DateUtils.parseDate("Friday, 14-Oct-05 00:00:00 GMT", formats, startDate);
+        assertEquals(date1, date2);
     }
 
     public void testParseQuotedDate() throws Exception {
@@ -135,11 +135,11 @@
         calendar.set(Calendar.MILLISECOND, 0);
         Date date1 = calendar.getTime(); 
         
-    	String[] formats = new String[] {
-    			DateUtils.PATTERN_RFC1123		
-    			};
-    	Date date2 = DateUtils.parseDate("'Fri, 14 Oct 2005 00:00:00 GMT'", formats);
-    	assertEquals(date1, date2);
+        String[] formats = new String[] {
+                DateUtils.PATTERN_RFC1123
+                };
+        Date date2 = DateUtils.parseDate("'Fri, 14 Oct 2005 00:00:00 GMT'", formats);
+        assertEquals(date1, date2);
     }
 
     public void testBasicDateFormat() throws Exception {