mirror of
https://github.com/revanced/smali.git
synced 2025-05-29 12:20:11 +02:00
Remove some unneeded casts in BuilderClassDef
This commit is contained in:
parent
fd8a1b4adc
commit
ca0a4bdf37
@ -31,7 +31,6 @@
|
||||
|
||||
package org.jf.dexlib2.writer.builder;
|
||||
|
||||
import com.google.common.base.Function;
|
||||
import com.google.common.base.Functions;
|
||||
import com.google.common.collect.*;
|
||||
import org.jf.dexlib2.base.reference.BaseTypeReference;
|
||||
@ -81,14 +80,10 @@ public class BuilderClassDef extends BaseTypeReference implements ClassDef {
|
||||
this.interfaces = interfaces;
|
||||
this.sourceFile = sourceFile;
|
||||
this.annotations = annotations;
|
||||
this.staticFields = ImmutableSortedSet.copyOf(
|
||||
(Iterable<? extends BuilderField>)Iterables.filter(fields, FieldUtil.FIELD_IS_STATIC));
|
||||
this.instanceFields = ImmutableSortedSet.copyOf(
|
||||
(Iterable<? extends BuilderField>)Iterables.filter(fields, FieldUtil.FIELD_IS_INSTANCE));
|
||||
this.directMethods = ImmutableSortedSet.copyOf(
|
||||
(Iterable<? extends BuilderMethod>)Iterables.filter(methods, MethodUtil.METHOD_IS_DIRECT));
|
||||
this.virtualMethods = ImmutableSortedSet.copyOf(
|
||||
(Iterable<? extends BuilderMethod>)Iterables.filter(methods, MethodUtil.METHOD_IS_VIRTUAL));
|
||||
this.staticFields = ImmutableSortedSet.copyOf(Iterables.filter(fields, FieldUtil.FIELD_IS_STATIC));
|
||||
this.instanceFields = ImmutableSortedSet.copyOf(Iterables.filter(fields, FieldUtil.FIELD_IS_INSTANCE));
|
||||
this.directMethods = ImmutableSortedSet.copyOf(Iterables.filter(methods, MethodUtil.METHOD_IS_DIRECT));
|
||||
this.virtualMethods = ImmutableSortedSet.copyOf(Iterables.filter(methods, MethodUtil.METHOD_IS_VIRTUAL));
|
||||
}
|
||||
|
||||
@Nonnull @Override public String getType() { return type.getType(); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user