2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-22 01:51:47 +00:00

Use java style instead of C style for arrays

This commit is contained in:
Nicolas Fella 2019-04-19 01:11:35 +02:00
parent 96a83ddcd3
commit 0072911c5b
3 changed files with 3 additions and 3 deletions

View File

@ -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()) {

View File

@ -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;

View File

@ -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) {