am c428b55c: Merge "Replace infinite loop with foreach." into mnc-dev

* commit 'c428b55c97a7359defef2c90a8a65160461d8474':
  Replace infinite loop with foreach.
This commit is contained in:
Deepanshu Gupta
2015-06-30 22:53:50 +00:00
committed by Android Git Automerger
2 changed files with 3 additions and 9 deletions

View File

@@ -151,7 +151,7 @@ public class AppCompatActionBar extends BridgeActionBar {
@Override
public void createMenuPopup() {
// it's hard to addd menus to appcompat's actionbar, since it'll use a lot of reflection.
// it's hard to add menus to appcompat's actionbar, since it'll use a lot of reflection.
// so we skip it for now.
}

View File

@@ -94,14 +94,8 @@ public class AsmGenerator {
ListIterator<Class<?>> iter = injectedClasses.listIterator();
while (iter.hasNext()) {
Class<?> clazz = iter.next();
try {
int i = 1;
while(i < 100) {
iter.add(Class.forName(clazz.getName() + "$" + i));
i++;
}
} catch (ClassNotFoundException ignored) {
// Expected.
for (Class<?> aClass : clazz.getDeclaredClasses()) {
iter.add(aClass);
}
}
mInjectClasses = injectedClasses.toArray(new Class<?>[0]);