diff options
author | Neil Fuller <nfuller@google.com> | 2014-05-06 14:14:14 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-05-06 14:14:14 +0000 |
commit | 5ac243a144869eb4be71be307de395da3957841f (patch) | |
tree | a90ee473a3fc26aad7bb2dc62d66747bce914b95 /dex | |
parent | fc4170ce49836db7a609da4c3a5ca02783df4307 (diff) | |
parent | 9ee11a688766068bf8b8625b70cd8aa6cf76c9eb (diff) | |
download | libcore-5ac243a144869eb4be71be307de395da3957841f.zip libcore-5ac243a144869eb4be71be307de395da3957841f.tar.gz libcore-5ac243a144869eb4be71be307de395da3957841f.tar.bz2 |
am 9ee11a68: am 7f5533ef: am b7bef747: Merge "Improve the performance of Annotation checks"
* commit '9ee11a688766068bf8b8625b70cd8aa6cf76c9eb':
Improve the performance of Annotation checks
Diffstat (limited to 'dex')
-rw-r--r-- | dex/src/main/java/com/android/dex/Dex.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/dex/src/main/java/com/android/dex/Dex.java b/dex/src/main/java/com/android/dex/Dex.java index 6667c99..ea9b627 100644 --- a/dex/src/main/java/com/android/dex/Dex.java +++ b/dex/src/main/java/com/android/dex/Dex.java @@ -882,7 +882,7 @@ public final class Dex { /** * Returns the number of bytes used by this section. */ - public int used () { + public int used() { return data.position() - initialPosition; } } @@ -896,7 +896,7 @@ public final class Dex { @Override public int size() { return tableOfContents.stringIds.size; } - }; + } private final class TypeIndexToDescriptorIndexTable extends AbstractList<Integer> implements RandomAccess { @@ -906,7 +906,7 @@ public final class Dex { @Override public int size() { return tableOfContents.typeIds.size; } - }; + } private final class TypeIndexToDescriptorTable extends AbstractList<String> implements RandomAccess { @@ -916,7 +916,7 @@ public final class Dex { @Override public int size() { return tableOfContents.typeIds.size; } - }; + } private final class ProtoIdTable extends AbstractList<ProtoId> implements RandomAccess { @Override public ProtoId get(int index) { @@ -927,7 +927,7 @@ public final class Dex { @Override public int size() { return tableOfContents.protoIds.size; } - }; + } private final class FieldIdTable extends AbstractList<FieldId> implements RandomAccess { @Override public FieldId get(int index) { @@ -938,7 +938,7 @@ public final class Dex { @Override public int size() { return tableOfContents.fieldIds.size; } - }; + } private final class MethodIdTable extends AbstractList<MethodId> implements RandomAccess { @Override public MethodId get(int index) { @@ -949,7 +949,7 @@ public final class Dex { @Override public int size() { return tableOfContents.methodIds.size; } - }; + } private final class ClassDefIterator implements Iterator<ClassDef> { private final Dex.Section in = open(tableOfContents.classDefs.off); @@ -971,7 +971,7 @@ public final class Dex { public void remove() { throw new UnsupportedOperationException(); } - }; + } private final class ClassDefIterable implements Iterable<ClassDef> { public Iterator<ClassDef> iterator() { @@ -979,5 +979,5 @@ public final class Dex { ? Collections.<ClassDef>emptySet().iterator() : new ClassDefIterator(); } - }; + } } |