summaryrefslogtreecommitdiffstats
path: root/dex
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2014-05-06 14:05:25 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-05-06 14:05:25 +0000
commitb7bef747246ee8042a5b4fbc9a323af6eecdaf30 (patch)
tree1f7d79382f48bf2e695667367202b78792120450 /dex
parentf198b04bfc2c267ba5e36c4e9d9483f821bc4fe7 (diff)
parent08da684abe6d5515a9c760a3a33af4f8b426095d (diff)
downloadlibcore-b7bef747246ee8042a5b4fbc9a323af6eecdaf30.zip
libcore-b7bef747246ee8042a5b4fbc9a323af6eecdaf30.tar.gz
libcore-b7bef747246ee8042a5b4fbc9a323af6eecdaf30.tar.bz2
Merge "Improve the performance of Annotation checks"
Diffstat (limited to 'dex')
-rw-r--r--dex/src/main/java/com/android/dex/Dex.java18
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();
}
- };
+ }
}