mirror of
https://github.com/revanced/Apktool.git
synced 2025-05-02 15:04:24 +02:00
Fix some generics issues when compiling with java 8
This commit is contained in:
parent
07ceb4fc8a
commit
6b6c2c09b6
@ -80,10 +80,14 @@ public class BuilderClassDef extends BaseTypeReference implements ClassDef {
|
|||||||
this.interfaces = interfaces;
|
this.interfaces = interfaces;
|
||||||
this.sourceFile = sourceFile;
|
this.sourceFile = sourceFile;
|
||||||
this.annotations = annotations;
|
this.annotations = annotations;
|
||||||
this.staticFields = ImmutableSortedSet.copyOf(Iterables.filter(fields, FieldUtil.FIELD_IS_STATIC));
|
this.staticFields = ImmutableSortedSet.copyOf(
|
||||||
this.instanceFields = ImmutableSortedSet.copyOf(Iterables.filter(fields, FieldUtil.FIELD_IS_INSTANCE));
|
(Iterable<? extends BuilderField>)Iterables.filter(fields, FieldUtil.FIELD_IS_STATIC));
|
||||||
this.directMethods = ImmutableSortedSet.copyOf(Iterables.filter(methods, MethodUtil.METHOD_IS_DIRECT));
|
this.instanceFields = ImmutableSortedSet.copyOf(
|
||||||
this.virtualMethods = ImmutableSortedSet.copyOf(Iterables.filter(methods, MethodUtil.METHOD_IS_VIRTUAL));
|
(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));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nonnull @Override public String getType() { return type.getType(); }
|
@Nonnull @Override public String getType() { return type.getType(); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user