mirror of
https://github.com/revanced/smali.git
synced 2025-06-12 04:17:36 +02:00
Add pastEnd() method to RegisterIterator
git-svn-id: https://smali.googlecode.com/svn/trunk@608 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
@ -1077,6 +1077,7 @@ public class MethodAnalyzer {
|
||||
int getRegister();
|
||||
boolean moveNext();
|
||||
int getCount();
|
||||
boolean pastEnd();
|
||||
}
|
||||
|
||||
private boolean handleFilledNewArrayCommon(AnalyzedInstruction analyzedInstruction,
|
||||
@ -1142,15 +1143,16 @@ public class MethodAnalyzer {
|
||||
|
||||
public boolean moveNext() {
|
||||
currentRegister++;
|
||||
if (currentRegister >= registerCount) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return pastEnd();
|
||||
}
|
||||
|
||||
public int getCount() {
|
||||
return registerCount;
|
||||
}
|
||||
|
||||
public boolean pastEnd() {
|
||||
return currentRegister >= registerCount;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -1178,15 +1180,16 @@ public class MethodAnalyzer {
|
||||
|
||||
public boolean moveNext() {
|
||||
currentRegister++;
|
||||
if (currentRegister >= registerCount) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return pastEnd();
|
||||
}
|
||||
|
||||
public int getCount() {
|
||||
return registerCount;
|
||||
}
|
||||
|
||||
public boolean pastEnd() {
|
||||
return currentRegister >= registerCount;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user