Fix validation timing
This commit is contained in:
parent
0001c5897e
commit
7148fe1ec7
|
@ -345,7 +345,6 @@ public class GeneratorVisitor extends ElementKindVisitor6<Void, Void> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Void visitTypeAsInterface(TypeElement e, Void p) {
|
public Void visitTypeAsInterface(TypeElement e, Void p) {
|
||||||
long startTime = System.currentTimeMillis();
|
|
||||||
final Collection<ExecutableElement> methods = Utils.getMethods(e);
|
final Collection<ExecutableElement> methods = Utils.getMethods(e);
|
||||||
final Collection<VariableElement> fields = Utils.getFields(e);
|
final Collection<VariableElement> fields = Utils.getFields(e);
|
||||||
if (methods.isEmpty() && fields.isEmpty()) {
|
if (methods.isEmpty() && fields.isEmpty()) {
|
||||||
|
@ -354,11 +353,11 @@ public class GeneratorVisitor extends ElementKindVisitor6<Void, Void> {
|
||||||
|
|
||||||
//env.getMessager().printMessage(Kind.NOTE, "methods count : " + Utils.getMethods(e).size() + " fields count : " + Utils.getFields(e).size(), e);
|
//env.getMessager().printMessage(Kind.NOTE, "methods count : " + Utils.getMethods(e).size() + " fields count : " + Utils.getFields(e).size(), e);
|
||||||
if (this.validate) {
|
if (this.validate) {
|
||||||
|
long startTime = System.currentTimeMillis();
|
||||||
methods.parallelStream().forEach(method -> validateMethod(method));
|
methods.parallelStream().forEach(method -> validateMethod(method));
|
||||||
|
printTiming(env.getMessager(), "Validated " + e, startTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
printTiming(env.getMessager(), "Validated " + e, startTime);
|
|
||||||
|
|
||||||
if (methods.size() > 0 && this.gen_native_path != null) {
|
if (methods.size() > 0 && this.gen_native_path != null) {
|
||||||
if (this.gen_java_path != null) {
|
if (this.gen_java_path != null) {
|
||||||
Future<Void> javaGenThread = spawn(() -> {
|
Future<Void> javaGenThread = spawn(() -> {
|
||||||
|
|
Loading…
Reference in New Issue