Fix indentation in RecordBuilderProcessor

This commit is contained in:
sipkab
2020-02-05 08:50:31 +01:00
parent 0fc82139de
commit 456b6f0f62

View File

@@ -47,11 +47,11 @@ public class RecordBuilderProcessor extends AbstractProcessor {
@Override @Override
public SourceVersion getSupportedSourceVersion() { public SourceVersion getSupportedSourceVersion() {
// we don't directly return RELEASE_14 as that may // we don't directly return RELEASE_14 as that may
// not exist in prior releases // not exist in prior releases
// if we're running on an older release, returning latest() // if we're running on an older release, returning latest()
// is fine as we won't encounter any records anyway // is fine as we won't encounter any records anyway
return SourceVersion.latest(); return SourceVersion.latest();
} }
private void process(Element element) { private void process(Element element) {
@@ -60,7 +60,7 @@ public class RecordBuilderProcessor extends AbstractProcessor {
// as the ElementKind.RECORD enum doesn't exist on JRE releases // as the ElementKind.RECORD enum doesn't exist on JRE releases
// older than Java 14, and we don't want to throw unexpected // older than Java 14, and we don't want to throw unexpected
// NoSuchFieldErrors // NoSuchFieldErrors
if (!"RECORD".equals(element.getKind().name())) { if (!"RECORD".equals(element.getKind().name())) {
messager.printMessage(Diagnostic.Kind.ERROR, "RecordBuilder only valid for records.", element); messager.printMessage(Diagnostic.Kind.ERROR, "RecordBuilder only valid for records.", element);
return; return;
} }