Commit 0072911c authored by Nicolas Fella's avatar Nicolas Fella

Use java style instead of C style for arrays

parent 96a83ddc
......@@ -93,7 +93,7 @@ public class StorageHelper {
Log.e("StorageHelper", "Exception while getting storageList", e);
}
File dirs[] = storage.listFiles();
File[] dirs = storage.listFiles();
for (File dir : dirs) {
//Log.e("getStorageList", "path: "+dir.getAbsolutePath());
if (dir.isDirectory() && dir.canRead() && dir.canExecute()) {
......
......@@ -264,7 +264,7 @@ public class CompositeReceiveFileJob extends BackgroundJob<Device, Void> {
}
private long receiveFile(InputStream input, OutputStream output) throws IOException {
byte data[] = new byte[4096];
byte[] data = new byte[4096];
int count;
long received = 0;
......
......@@ -150,7 +150,7 @@ public class LanLinkTest {
final InputStream input = np.getPayload().getInputStream();
final long fileLength = np.getPayloadSize();
byte data[] = new byte[1024];
byte[] data = new byte[1024];
long progress = 0, prevProgressPercentage = 0;
int count;
while ((count = input.read(data)) >= 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment