diff --git a/src/org/kde/kdeconnect/Helpers/StorageHelper.java b/src/org/kde/kdeconnect/Helpers/StorageHelper.java index 9d8ccff4..796d2a27 100644 --- a/src/org/kde/kdeconnect/Helpers/StorageHelper.java +++ b/src/org/kde/kdeconnect/Helpers/StorageHelper.java @@ -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()) { diff --git a/src/org/kde/kdeconnect/Plugins/SharePlugin/CompositeReceiveFileJob.java b/src/org/kde/kdeconnect/Plugins/SharePlugin/CompositeReceiveFileJob.java index d275f9ee..98517eca 100644 --- a/src/org/kde/kdeconnect/Plugins/SharePlugin/CompositeReceiveFileJob.java +++ b/src/org/kde/kdeconnect/Plugins/SharePlugin/CompositeReceiveFileJob.java @@ -264,7 +264,7 @@ public class CompositeReceiveFileJob extends BackgroundJob { } private long receiveFile(InputStream input, OutputStream output) throws IOException { - byte data[] = new byte[4096]; + byte[] data = new byte[4096]; int count; long received = 0; diff --git a/tests/org/kde/kdeconnect/LanLinkTest.java b/tests/org/kde/kdeconnect/LanLinkTest.java index d1e72e2e..70b7515f 100644 --- a/tests/org/kde/kdeconnect/LanLinkTest.java +++ b/tests/org/kde/kdeconnect/LanLinkTest.java @@ -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) {