Skip to content

Commit 562dd20

Browse files
committed
Reformat only BeanReader
1 parent 1cb5c86 commit 562dd20

File tree

1 file changed

+20
-25
lines changed

1 file changed

+20
-25
lines changed

jsonb-generator/src/main/java/io/avaje/jsonb/generator/BeanReader.java

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
package io.avaje.jsonb.generator;
22

3+
import io.avaje.jsonb.Json;
4+
5+
import javax.lang.model.element.Element;
6+
import javax.lang.model.element.TypeElement;
37
import java.util.HashSet;
48
import java.util.List;
5-
import java.util.Map;
69
import java.util.Set;
710
import java.util.TreeSet;
811

9-
import javax.lang.model.element.Element;
10-
import javax.lang.model.element.TypeElement;
11-
12-
import io.avaje.jsonb.Json;
13-
1412
class BeanReader {
1513

1614
private final TypeElement beanType;
@@ -44,27 +42,22 @@ class BeanReader {
4442
this.constructor = typeReader.constructor();
4543
}
4644

47-
public BeanReader(
48-
TypeElement beanType,
49-
TypeElement mixInElement,
50-
ProcessingContext context) {
51-
52-
this.beanType = beanType;
53-
this.type = beanType.getQualifiedName().toString();
54-
this.shortName = shortName(beanType);
55-
final NamingConventionReader ncReader = new NamingConventionReader(beanType);
56-
this.namingConvention = ncReader.get();
57-
this.typeProperty = ncReader.typeProperty();
58-
this.typeReader = new TypeReader(beanType, mixInElement, context, namingConvention);
59-
typeReader.process();
60-
this.nonAccessibleField = typeReader.nonAccessibleField();
61-
this.hasSubTypes = typeReader.hasSubTypes();
62-
this.allFields = typeReader.allFields();
63-
this.constructor = typeReader.constructor();
64-
45+
public BeanReader(TypeElement beanType, TypeElement mixInElement, ProcessingContext context) {
46+
this.beanType = beanType;
47+
this.type = beanType.getQualifiedName().toString();
48+
this.shortName = shortName(beanType);
49+
final NamingConventionReader ncReader = new NamingConventionReader(beanType);
50+
this.namingConvention = ncReader.get();
51+
this.typeProperty = ncReader.typeProperty();
52+
this.typeReader = new TypeReader(beanType, mixInElement, context, namingConvention);
53+
typeReader.process();
54+
this.nonAccessibleField = typeReader.nonAccessibleField();
55+
this.hasSubTypes = typeReader.hasSubTypes();
56+
this.allFields = typeReader.allFields();
57+
this.constructor = typeReader.constructor();
6558
}
6659

67-
@Override
60+
@Override
6861
public String toString() {
6962
return beanType.toString();
7063
}
@@ -198,6 +191,7 @@ void writeViewSupport(Append writer) {
198191
writeViewBuild(writer);
199192
}
200193
}
194+
201195
private void writeView(Append writer) {
202196
writer.eol();
203197
writer.append(" @Override").eol();
@@ -375,4 +369,5 @@ private void writeFromJsonSwitch(Append writer, boolean defaultConstructor, Stri
375369
writer.append(" }").eol();
376370
writer.append(" reader.endObject();").eol();
377371
}
372+
378373
}

0 commit comments

Comments
 (0)