Skip to content

Commit e4a06a9

Browse files
committed
Format only change for ProcessingContext
1 parent f132bf8 commit e4a06a9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ static void init(ProcessingEnvironment processingEnv) {
5454

5555
private static boolean initPreviewEnabled(ProcessingEnvironment processingEnv) {
5656
try {
57-
return (boolean)
58-
ProcessingEnvironment.class.getDeclaredMethod("isPreviewEnabled").invoke(processingEnv);
57+
return (boolean) ProcessingEnvironment.class.getDeclaredMethod("isPreviewEnabled").invoke(processingEnv);
5958
} catch (final Throwable e) {
6059
return false;
6160
}
@@ -126,8 +125,7 @@ static ProcessingEnvironment env() {
126125

127126
static void addImportedPrism(ImportPrism prism, Element element) {
128127
if (!prism.subtypes().isEmpty() && prism.value().size() > 1) {
129-
logError(
130-
element, "subtypes cannot be used when an import annotation imports more than one class");
128+
logError(element, "subtypes cannot be used when an import annotation imports more than one class");
131129
return;
132130
}
133131
final var json = CTX.get().importedJsonMap;

0 commit comments

Comments
 (0)