Reformatted code

This commit is contained in:
Collin Smith 2020-12-16 00:25:55 -08:00
parent d12a301703
commit 2d546442c0

View File

@ -29,6 +29,15 @@ class TableCodeGenerator extends CodeGenerator {
;
}
MethodSpec constructor(SchemaElement schemaElement) {
Schema config = schemaElement.annotation;
return MethodSpec
.constructorBuilder()
.addStatement("super($T.class, $L, $Lf)", // does not append "f" automatically for float literals
schemaElement.element, config.initialCapacity(), config.loadFactor())
.build();
}
MethodSpec newRecord(SchemaElement schemaElement) {
TableElement tableElement = schemaElement.tableElement;
return MethodSpec
@ -40,15 +49,6 @@ class TableCodeGenerator extends CodeGenerator {
.build();
}
MethodSpec constructor(SchemaElement schemaElement) {
Schema config = schemaElement.annotation;
return MethodSpec
.constructorBuilder()
.addStatement("super($T.class, $L, $Lf)", // does not append "f" automatically for float literals
schemaElement.element, config.initialCapacity(), config.loadFactor())
.build();
}
MethodSpec offset(SchemaElement schemaElement) {
Schema config = schemaElement.annotation;
TableElement tableElement = schemaElement.tableElement;