sbailliez 02/01/08 14:27:45
Modified: src/main/org/apache/tools/bzip2 CBZip2OutputStream.java
Log:
Fix bad coding style.
then/else parts of if statement and loop body must always been enclosed
in a block statement.
Revision Changes Path
1.5 +6 -3
jakarta-ant/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java
Index: CBZip2OutputStream.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- CBZip2OutputStream.java 8 Jan 2002 20:49:11 -0000 1.4
+++ CBZip2OutputStream.java 8 Jan 2002 22:27:45 -0000 1.5
@@ -678,10 +678,11 @@
fave[t] = 0;
}
- for (t = 0; t < nGroups; t++)
+ for (t = 0; t < nGroups; t++) {
for (v = 0; v < alphaSize; v++) {
rfreq[t][v] = 0;
}
+ }
nSelectors = 0;
totc = 0;
@@ -771,8 +772,9 @@
fave = null;
cost = null;
- if (!(nGroups < 8))
+ if (!(nGroups < 8)) {
panic();
+ }
if (!(nSelectors < 32768 && nSelectors <= (2 + (900000 / G_SIZE)))) {
panic();
}
@@ -1192,8 +1194,9 @@
simpleSort ( 0, last, 0 );
} else {
numQSorted = 0;
- for (i = 0; i <= 255; i++)
+ for (i = 0; i <= 255; i++) {
bigDone[i] = false;
+ }
for (i = 0; i <= 65536; i++) {
ftab[i] = 0;
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>