mirror of
https://github.com/revanced/smali.git
synced 2025-05-02 23:54:38 +02:00
Remove unwanted @Nonnull annotations from VariableSizeList and iterator
This commit is contained in:
parent
7301fbe30e
commit
8c74001967
@ -48,19 +48,20 @@ public abstract class VariableSizeList<T> extends AbstractSequentialList<T> {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
@Nonnull protected abstract T readNextItem(@Nonnull DexReader reader, int index);
|
||||
protected abstract T readNextItem(@Nonnull DexReader reader, int index);
|
||||
|
||||
@Override
|
||||
@Nonnull
|
||||
public VariableSizeListIterator<T> listIterator() {
|
||||
return listIterator(0);
|
||||
}
|
||||
|
||||
@Override public int size() { return size; }
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public VariableSizeListIterator<T> listIterator(int index) {
|
||||
VariableSizeListIterator<T> iterator = new VariableSizeListIterator<T>(dexBuf, offset, size) {
|
||||
@Nonnull
|
||||
@Override
|
||||
protected T readNextItem(@Nonnull DexReader reader, int index) {
|
||||
return VariableSizeList.this.readNextItem(reader, index);
|
||||
|
@ -58,7 +58,7 @@ public abstract class VariableSizeListIterator<T> implements ListIterator<T> {
|
||||
* @param index The index of the item being read. This is guaranteed to be less than {@code size}
|
||||
* @return The item that was read
|
||||
*/
|
||||
@Nonnull protected abstract T readNextItem(@Nonnull DexReader reader, int index);
|
||||
protected abstract T readNextItem(@Nonnull DexReader reader, int index);
|
||||
|
||||
public int getReaderOffset() {
|
||||
return reader.getOffset();
|
||||
@ -70,7 +70,6 @@ public abstract class VariableSizeListIterator<T> implements ListIterator<T> {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nonnull
|
||||
public T next() {
|
||||
if (index >= size) {
|
||||
throw new NoSuchElementException();
|
||||
|
Loading…
x
Reference in New Issue
Block a user