diff options
author | Paulo Casanova <pasc@google.com> | 2016-11-17 16:31:20 +0000 |
---|---|---|
committer | Paulo Casanova <pasc@google.com> | 2016-11-17 18:03:44 +0000 |
commit | 44a855b398b178d6250822fe78ed2fe15429436f (patch) | |
tree | 85ba8cdc8429cd54d362bc5c199460af644b029c /src/main/java/com/android | |
parent | bef0e6c1908d40200ffa04cb3d6aed648e7b45d1 (diff) | |
download | apkzlib-44a855b398b178d6250822fe78ed2fe15429436f.tar.gz |
Removed use of direct executor.
This method was introduced in guava 18, but the new version of
gradle still uses 17. The equivalent method in guava 17 has
been deprecated in guava 18 so there is no way to have this
working in both 17 and 18 without using the deprecated
method.
This fixes the dilemma by removing guava's call :)
Test: Unnecessary
Change-Id: I4469216f27f91ed8be10d88102454e32cdab4660
Diffstat (limited to 'src/main/java/com/android')
-rw-r--r-- | src/main/java/com/android/apkzlib/zip/ZFileOptions.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/android/apkzlib/zip/ZFileOptions.java b/src/main/java/com/android/apkzlib/zip/ZFileOptions.java index 7b92005..0e87046 100644 --- a/src/main/java/com/android/apkzlib/zip/ZFileOptions.java +++ b/src/main/java/com/android/apkzlib/zip/ZFileOptions.java @@ -19,8 +19,6 @@ package com.android.apkzlib.zip; import com.android.annotations.NonNull; import com.android.apkzlib.zip.compress.DeflateExecutionCompressor; import com.android.apkzlib.zip.utils.ByteTracker; -import com.google.common.util.concurrent.MoreExecutors; - import java.util.zip.Deflater; /** @@ -74,7 +72,9 @@ public class ZFileOptions { mTracker = new ByteTracker(); mCompressor = new DeflateExecutionCompressor( - MoreExecutors.directExecutor(), mTracker, Deflater.DEFAULT_COMPRESSION); + Runnable::run, + mTracker, + Deflater.DEFAULT_COMPRESSION); mAlignmentRule = AlignmentRules.compose(); } |