mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-05 17:45:52 +01:00
Remove usages of the deprecated Iterators.emptyIterator() method
This commit is contained in:
parent
027e135d41
commit
5cd9d01a9e
@ -32,7 +32,7 @@
|
||||
package org.jf.dexlib2.dexbacked;
|
||||
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import com.google.common.collect.Iterators;
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
import org.jf.dexlib2.base.reference.BaseMethodReference;
|
||||
import org.jf.dexlib2.dexbacked.raw.MethodIdItem;
|
||||
import org.jf.dexlib2.dexbacked.raw.ProtoIdItem;
|
||||
@ -152,7 +152,7 @@ public class DexBackedMethod extends BaseMethodReference implements Method {
|
||||
if (methodImpl != null) {
|
||||
return methodImpl.getParameterNames(null);
|
||||
}
|
||||
return Iterators.emptyIterator();
|
||||
return ImmutableSet.<String>of().iterator();
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
|
@ -31,12 +31,13 @@
|
||||
|
||||
package org.jf.dexlib2.dexbacked.util;
|
||||
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
import com.google.common.collect.Iterators;
|
||||
import org.jf.dexlib2.AccessFlags;
|
||||
import org.jf.dexlib2.DebugItemType;
|
||||
import org.jf.dexlib2.dexbacked.DexBackedDexFile;
|
||||
import org.jf.dexlib2.dexbacked.DexBackedMethod;
|
||||
import org.jf.dexlib2.dexbacked.DexBackedMethodImplementation;
|
||||
import org.jf.dexlib2.dexbacked.DexBackedDexFile;
|
||||
import org.jf.dexlib2.dexbacked.DexReader;
|
||||
import org.jf.dexlib2.iface.MethodParameter;
|
||||
import org.jf.dexlib2.iface.debug.DebugItem;
|
||||
@ -72,7 +73,7 @@ public abstract class DebugInfo implements Iterable<DebugItem> {
|
||||
private EmptyDebugInfo() {}
|
||||
@Nonnull @Override public Iterator<DebugItem> iterator() { return Iterators.emptyIterator(); }
|
||||
@Nonnull @Override public Iterator<String> getParameterNames(@Nullable DexReader reader) {
|
||||
return Iterators.emptyIterator();
|
||||
return ImmutableSet.<String>of().iterator();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user