From 2e17c7ec29a4f3c85716068c27ee8219662b7397 Mon Sep 17 00:00:00 2001 From: Darshan Parajuli Date: Tue, 25 Aug 2020 20:25:22 -0700 Subject: [PATCH] Fix build warnings --- logcat/src/main/java/com/dp/logcat/Logcat.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/logcat/src/main/java/com/dp/logcat/Logcat.kt b/logcat/src/main/java/com/dp/logcat/Logcat.kt index 5fdc9c1..8a18afd 100644 --- a/logcat/src/main/java/com/dp/logcat/Logcat.kt +++ b/logcat/src/main/java/com/dp/logcat/Logcat.kt @@ -517,7 +517,7 @@ class Logcat(initialCapacity: Int = INITIAL_LOG_CAPACITY) : Closeable { val result = mutableSetOf() val stdoutList = mutableListOf() - CommandUtils.runCmd(cmd = *arrayOf("logcat", "-g"), stdoutList = stdoutList) + CommandUtils.runCmd(cmd = arrayOf("logcat", "-g"), stdoutList = stdoutList) for (s in stdoutList) { val colonIndex = s.indexOf(":") @@ -573,7 +573,7 @@ class Logcat(initialCapacity: Int = INITIAL_LOG_CAPACITY) : Closeable { val result = mutableSetOf() val stdoutList = mutableListOf() - CommandUtils.runCmd(cmd = *arrayOf("logcat", "-h"), + CommandUtils.runCmd(cmd = arrayOf("logcat", "-h"), stdoutList = stdoutList, redirectStderr = true) var bFound = false