mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-24 03:35:55 +01: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.sourceFile = sourceFile;
|
||||
this.annotations = annotations;
|
||||
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));
|
||||
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));
|
||||
}
|
||||
|
||||
@Nonnull @Override public String getType() { return type.getType(); }
|
||||
|
Loading…
Reference in New Issue
Block a user