File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
jsonb/src/main/java/io/avaje/jsonb/core Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ static final class DBuilder implements Jsonb.Builder {
228
228
private boolean serializeNulls ;
229
229
private boolean serializeEmpty = true ;
230
230
private JsonStreamAdapter adapter ;
231
- private final BufferRecycleStrategy strategy = BufferRecycleStrategy .HYBRID_POOL ;
231
+ private BufferRecycleStrategy strategy = BufferRecycleStrategy .HYBRID_POOL ;
232
232
233
233
@ Override
234
234
public Builder serializeNulls (boolean serializeNulls ) {
@@ -256,7 +256,7 @@ public Builder mathTypesAsString(boolean mathTypesAsString) {
256
256
257
257
@ Override
258
258
public Builder bufferRecycling (BufferRecycleStrategy strategy ) {
259
- bufferRecycling ( strategy ) ;
259
+ this . strategy = strategy ;
260
260
return this ;
261
261
}
262
262
@@ -322,9 +322,9 @@ static JsonAdapter.Factory newAdapterFactory(Type type, AdapterBuilder builder)
322
322
requireNonNull (builder );
323
323
return (targetType , jsonb ) -> simpleMatch (type , targetType ) ? builder .build (jsonb ).nullSafe () : null ;
324
324
}
325
- }
326
325
327
- private static boolean simpleMatch (Type type , Type targetType ) {
328
- return Util .typesMatch (type , targetType );
326
+ private static boolean simpleMatch (Type type , Type targetType ) {
327
+ return Util .typesMatch (type , targetType );
328
+ }
329
329
}
330
330
}
You can’t perform that action at this time.
0 commit comments