Skip to content

Commit

Permalink
chore: avoid generating uneeded fluents for annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
iocanel committed Jul 21, 2021
1 parent 51dcf95 commit f302a0e
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,11 @@ public void generateBuildables(BuilderContext ctx, Set<TypeDef> buildables) {
for (TypeDef typeDef : buildables) {
RichTypeDef richTypeDef = TypeArguments.apply(typeDef);
double percentage = 100d * (count++) / total;
System.err.printf("\033[2K%3d%% Generating: %s\r", Math.round(percentage), typeDef.getFullyQualifiedName());

generate(ClazzAs.FLUENT_INTERFACE.apply(richTypeDef));
if (typeDef.isInterface() || typeDef.isAnnotation()) {
continue;
}

System.err.printf("\033[2K%3d%% Generating: %s\r", Math.round(percentage), typeDef.getFullyQualifiedName());
generate(ClazzAs.FLUENT_INTERFACE.apply(richTypeDef));
generate(ClazzAs.FLUENT_IMPL.apply(richTypeDef));
if (typeDef.isAbstract()) {
continue;
Expand Down

0 comments on commit f302a0e

Please sign in to comment.