diff options
author | mikaelpeltier <mikaelpeltier@google.com> | 2014-07-21 11:22:31 +0200 |
---|---|---|
committer | mikaelpeltier <mikaelpeltier@google.com> | 2014-07-28 08:43:26 +0200 |
commit | ce268db890a35373989ad4d085ac2d6550eb54ae (patch) | |
tree | c2dee19d6f428dcff6e4003f4e0926734bfd1f54 /dx | |
parent | 620880a8112b7c86fae93ad60dcac02d7458f408 (diff) | |
download | toolchain_jack-ce268db890a35373989ad4d085ac2d6550eb54ae.zip toolchain_jack-ce268db890a35373989ad4d085ac2d6550eb54ae.tar.gz toolchain_jack-ce268db890a35373989ad4d085ac2d6550eb54ae.tar.bz2 |
Remove dex file preparer schedulable
- add prepare() method that can be used when mapping
is not required during prepare stage.
(cherry picked from commit a5f57a9971c02f7d2b7de9e9cc485a516303c7ec)
Change-Id: I19113a3ed682fa104d96df5f175a936578beb6ce
Diffstat (limited to 'dx')
-rw-r--r-- | dx/src/com/android/jack/dx/dex/file/DexFile.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dx/src/com/android/jack/dx/dex/file/DexFile.java b/dx/src/com/android/jack/dx/dex/file/DexFile.java index 413911b..2de5c9c 100644 --- a/dx/src/com/android/jack/dx/dex/file/DexFile.java +++ b/dx/src/com/android/jack/dx/dex/file/DexFile.java @@ -491,6 +491,15 @@ public final class DexFile { * Prepares this instance for writing. This performs any necessary prerequisites, including * particularly adding stuff to other sections and places all the items in this instance at * particular offsets. + */ + public void prepare() { + prepare(null); + } + + /** + * Prepares this instance for writing. This performs any necessary prerequisites, including + * particularly adding stuff to other sections and places all the items in this instance at + * particular offsets. * * @param cstIndexMaps list used to map offsets from a dex file to this instance */ |