commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r926808 - in /commons/proper/net/branches/NET_2_0/src: main/java/org/apache/commons/net/util/Base64.java test/java/org/apache/commons/net/telnet/TelnetClientTest.java
Date Tue, 23 Mar 2010 21:57:18 GMT
Author: sebb
Date: Tue Mar 23 21:57:17 2010
New Revision: 926808

URL: http://svn.apache.org/viewvc?rev=926808&view=rev
Log:
Tab police

Modified:
    commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/util/Base64.java
    commons/proper/net/branches/NET_2_0/src/test/java/org/apache/commons/net/telnet/TelnetClientTest.java

Modified: commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/util/Base64.java
URL: http://svn.apache.org/viewvc/commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/util/Base64.java?rev=926808&r1=926807&r2=926808&view=diff
==============================================================================
--- commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/util/Base64.java
(original)
+++ commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/util/Base64.java
Tue Mar 23 21:57:17 2010
@@ -722,14 +722,14 @@ public class Base64 {
     }
 
     private byte[] getBytesUtf8(String pArray) {
-		try {
-			return pArray.getBytes("UTF8");
-		} catch (UnsupportedEncodingException e) {
-			throw new RuntimeException(e);
-		}
-	}
+        try {
+            return pArray.getBytes("UTF8");
+        } catch (UnsupportedEncodingException e) {
+            throw new RuntimeException(e);
+        }
+    }
 
-	/**
+    /**
      * Decodes a byte[] containing containing characters in the Base64 alphabet.
      * 
      * @param pArray
@@ -900,16 +900,16 @@ public class Base64 {
     }
 
     private static String newStringUtf8(byte[] encode) {
-		String str = null;
-		try {
-			str = new String(encode, "UTF8");
-		} catch (UnsupportedEncodingException ue) {
-			throw new RuntimeException(ue);
-		}
-		return str;
-	}
+        String str = null;
+        try {
+            str = new String(encode, "UTF8");
+        } catch (UnsupportedEncodingException ue) {
+            throw new RuntimeException(ue);
+        }
+        return str;
+    }
 
-	/**
+    /**
      * Encodes a byte[] containing binary data, into a byte[] containing characters in the
Base64 alphabet.
      * 
      * @param pArray

Modified: commons/proper/net/branches/NET_2_0/src/test/java/org/apache/commons/net/telnet/TelnetClientTest.java
URL: http://svn.apache.org/viewvc/commons/proper/net/branches/NET_2_0/src/test/java/org/apache/commons/net/telnet/TelnetClientTest.java?rev=926808&r1=926807&r2=926808&view=diff
==============================================================================
--- commons/proper/net/branches/NET_2_0/src/test/java/org/apache/commons/net/telnet/TelnetClientTest.java
(original)
+++ commons/proper/net/branches/NET_2_0/src/test/java/org/apache/commons/net/telnet/TelnetClientTest.java
Tue Mar 23 21:57:17 2010
@@ -798,9 +798,9 @@ extends TestCase implements TelnetNotifi
             
             byte[] tmp = new byte[16];
             while ( pos < 5 ) {
-            	read = is1.read(tmp); 
-            	System.arraycopy(tmp, 0, buffread1, pos, read);
-            	pos+=read;
+                read = is1.read(tmp);
+                System.arraycopy(tmp, 0, buffread1, pos, read);
+                pos+=read;
             }
             
             if(equalBytes(buffread1, expected1))
@@ -818,9 +818,9 @@ extends TestCase implements TelnetNotifi
         
         tmp = new byte[16];
         while ( pos < 5 ) {
-        	read = is2.read(tmp); 
-        	System.arraycopy(tmp, 0, buffread1, pos, read);
-        	pos+=read;
+            read = is2.read(tmp); 
+            System.arraycopy(tmp, 0, buffread1, pos, read);
+            pos+=read;
         }
         //if(is2.available() == 6)
         //{



Mime
View raw message