Fixed annotations

This commit is contained in:
Anuken
2022-05-10 00:14:33 -04:00
parent 6efca04ea8
commit f7e74bdbfc
4 changed files with 6 additions and 6 deletions

View File

@@ -163,7 +163,7 @@ public class EntityProcess extends BaseProcessor{
//SPECIAL CASE: components with EntityDefs don't get a base class! the generated class becomes the base class itself
if(component.annotation(Component.class).base()){
Seq<Stype> deps = depends.copy().and(component);
Seq<Stype> deps = depends.copy().add(component);
baseClassDeps.get(component, ObjectSet::new).addAll(deps);
//do not generate base classes when the component will generate one itself
@@ -822,7 +822,7 @@ public class EntityProcess extends BaseProcessor{
//create mock types of all components
for(Stype interf : allInterfaces){
//indirect interfaces to implement methods for
Seq<Stype> dependencies = interf.allInterfaces().and(interf);
Seq<Stype> dependencies = interf.allInterfaces().add(interf);
Seq<Smethod> methods = dependencies.flatMap(Stype::methods);
methods.sortComparing(Object::toString);

View File

@@ -25,7 +25,7 @@ public class Stype extends Selement<TypeElement>{
}
public Seq<Stype> allInterfaces(){
return interfaces().flatMap(s -> s.allInterfaces().and(s)).distinct();
return interfaces().flatMap(s -> s.allInterfaces().add(s)).distinct();
}
public Seq<Stype> superclasses(){
@@ -33,7 +33,7 @@ public class Stype extends Selement<TypeElement>{
}
public Seq<Stype> allSuperclasses(){
return superclasses().flatMap(s -> s.allSuperclasses().and(s)).distinct();
return superclasses().flatMap(s -> s.allSuperclasses().add(s)).distinct();
}
public Stype superclass(){