mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-07-04 15:27:30 +07:00
Reformatted code
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user