Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 89c79f1

Browse files
committed
Cosmetic changes.
1 parent 7e3cc7b commit 89c79f1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<delete dir="target/apidocs" failonerror="true"/>
2929
<mkdir dir="target/apidocs"/>
3030
<javadoc sourcepath="src/main/java" destdir="target/apidocs" failonerror="true"
31-
link="http://docs.oracle.com/javase/6/docs/api/"/>
31+
link="https://docs.oracle.com/javase/7/docs/api/"/>
3232
</target>
3333

3434
<!-- Test ===================================================================-->

src/main/java/biz/source_code/base64Coder/Base64Coder.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ public static String encodeLines (byte[] in, int iOff, int iLen, int lineLen, St
8484
int ip = 0;
8585
while (ip < iLen) {
8686
int l = Math.min(iLen-ip, blockLen);
87-
buf.append (encode(in, iOff+ip, l));
88-
buf.append (lineSeparator);
87+
buf.append(encode(in, iOff+ip, l));
88+
buf.append(lineSeparator);
8989
ip += l; }
9090
return buf.toString(); }
9191

@@ -194,7 +194,7 @@ public static byte[] decode (char[] in) {
194194
* @throws IllegalArgumentException If the input is not valid Base64 encoded data.
195195
*/
196196
public static byte[] decode (char[] in, int iOff, int iLen) {
197-
if (iLen%4 != 0) throw new IllegalArgumentException ("Length of Base64 encoded input string is not a multiple of 4.");
197+
if (iLen%4 != 0) throw new IllegalArgumentException("Length of Base64 encoded input string is not a multiple of 4.");
198198
while (iLen > 0 && in[iOff+iLen-1] == '=') iLen--;
199199
int oLen = (iLen*3) / 4;
200200
byte[] out = new byte[oLen];
@@ -207,13 +207,13 @@ public static byte[] decode (char[] in, int iOff, int iLen) {
207207
int i2 = ip < iEnd ? in[ip++] : 'A';
208208
int i3 = ip < iEnd ? in[ip++] : 'A';
209209
if (i0 > 127 || i1 > 127 || i2 > 127 || i3 > 127)
210-
throw new IllegalArgumentException ("Illegal character in Base64 encoded data.");
210+
throw new IllegalArgumentException("Illegal character in Base64 encoded data.");
211211
int b0 = map2[i0];
212212
int b1 = map2[i1];
213213
int b2 = map2[i2];
214214
int b3 = map2[i3];
215215
if (b0 < 0 || b1 < 0 || b2 < 0 || b3 < 0)
216-
throw new IllegalArgumentException ("Illegal character in Base64 encoded data.");
216+
throw new IllegalArgumentException("Illegal character in Base64 encoded data.");
217217
int o0 = ( b0 <<2) | (b1>>>4);
218218
int o1 = ((b1 & 0xf)<<4) | (b2>>>2);
219219
int o2 = ((b2 & 3)<<6) | b3;

0 commit comments

Comments
 (0)