mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-18 07:14:09 +01:00
Place array designator on the type instead of the variable
Former-commit-id: 2e29bc1c61400e3bdb6b35b0b21a5cbb04cbf37a
This commit is contained in:
@@ -382,7 +382,7 @@ public class ArchiveAnalyzer extends AbstractFileTypeAnalyzer {
|
|||||||
fos = new FileOutputStream(file);
|
fos = new FileOutputStream(file);
|
||||||
bos = new BufferedOutputStream(fos, BUFFER_SIZE);
|
bos = new BufferedOutputStream(fos, BUFFER_SIZE);
|
||||||
int count;
|
int count;
|
||||||
final byte data[] = new byte[BUFFER_SIZE];
|
final byte[] data = new byte[BUFFER_SIZE];
|
||||||
while ((count = input.read(data, 0, BUFFER_SIZE)) != -1) {
|
while ((count = input.read(data, 0, BUFFER_SIZE)) != -1) {
|
||||||
bos.write(data, 0, count);
|
bos.write(data, 0, count);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -408,7 +408,7 @@ public class JarAnalyzer extends AbstractFileTypeAnalyzer {
|
|||||||
fos = new FileOutputStream(file);
|
fos = new FileOutputStream(file);
|
||||||
bos = new BufferedOutputStream(fos, BUFFER_SIZE);
|
bos = new BufferedOutputStream(fos, BUFFER_SIZE);
|
||||||
int count;
|
int count;
|
||||||
final byte data[] = new byte[BUFFER_SIZE];
|
final byte[] data = new byte[BUFFER_SIZE];
|
||||||
while ((count = input.read(data, 0, BUFFER_SIZE)) != -1) {
|
while ((count = input.read(data, 0, BUFFER_SIZE)) != -1) {
|
||||||
bos.write(data, 0, count);
|
bos.write(data, 0, count);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ public final class ExtractionUtil {
|
|||||||
fos = new FileOutputStream(file);
|
fos = new FileOutputStream(file);
|
||||||
bos = new BufferedOutputStream(fos, BUFFER_SIZE);
|
bos = new BufferedOutputStream(fos, BUFFER_SIZE);
|
||||||
int count;
|
int count;
|
||||||
final byte data[] = new byte[BUFFER_SIZE];
|
final byte[] data = new byte[BUFFER_SIZE];
|
||||||
while ((count = zis.read(data, 0, BUFFER_SIZE)) != -1) {
|
while ((count = zis.read(data, 0, BUFFER_SIZE)) != -1) {
|
||||||
bos.write(data, 0, count);
|
bos.write(data, 0, count);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user