mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-11 03:17:13 +07:00
Reformatted code
This commit is contained in:
parent
d12a301703
commit
2d546442c0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user