Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
philwebb committed Apr 20, 2024
1 parent f64526b commit 589dc72
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ protected String resolveDescription(MetadataGenerationEnvironment environment) {
return environment.getTypeUtils().getJavaDoc(this.field);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public Object visitPrimitiveAsDouble(PrimitiveType type, Void parameter) {
/**
* Visitor that gets the default using coercion.
*/
private static class DefaultValueCoercionTypeVisitor extends TypeKindVisitor8<Object, String> {
private static final class DefaultValueCoercionTypeVisitor extends TypeKindVisitor8<Object, String> {

static final DefaultValueCoercionTypeVisitor INSTANCE = new DefaultValueCoercionTypeVisitor();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private PropertyDescriptor extracted(TypeElement declaringElement, TypeElementMe
ExecutableElement setter = members.getPublicSetter(name, type);
VariableElement field = members.getFields().get(name);
RecordComponentElement recordComponent = members.getRecordComponents().get(name);
return recordComponent != null
return (recordComponent != null)
? new RecordParameterPropertyDescriptor(name, type, parameter, declaringElement, getter,
recordComponent)
: new ConstructorParameterPropertyDescriptor(name, type, parameter, declaringElement, getter, setter,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* @author Pavel Anisimov
* @author Phillip Webb
*/
public class RecordParameterPropertyDescriptor extends ParameterPropertyDescriptor {
class RecordParameterPropertyDescriptor extends ParameterPropertyDescriptor {

private final RecordComponentElement recordComponent;

Expand All @@ -58,4 +58,4 @@ protected String resolveDescription(MetadataGenerationEnvironment environment) {
return environment.getTypeUtils().getJavaDoc(this.recordComponent);
}

}
}

0 comments on commit 589dc72

Please sign in to comment.