From c41f9ceadf1767ebc602f58d356c05ee89e1e551 Mon Sep 17 00:00:00 2001 From: Piotrek Zygielo Date: Wed, 28 Dec 2022 10:13:56 +0100 Subject: [PATCH] Remove unused private field --- impl/src/main/java/org/eclipse/parsson/JsonReaderImpl.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/impl/src/main/java/org/eclipse/parsson/JsonReaderImpl.java b/impl/src/main/java/org/eclipse/parsson/JsonReaderImpl.java index d41999bd..4b01cb9e 100644 --- a/impl/src/main/java/org/eclipse/parsson/JsonReaderImpl.java +++ b/impl/src/main/java/org/eclipse/parsson/JsonReaderImpl.java @@ -1,5 +1,6 @@ /* * Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2022 Contributors to the Eclipse Foundation. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0, which is available at @@ -41,7 +42,6 @@ class JsonReaderImpl implements JsonReader { private final JsonParserImpl parser; private boolean readDone; - private final BufferPool bufferPool; JsonReaderImpl(Reader reader, BufferPool bufferPool) { this(reader, bufferPool, false, Collections.emptyMap()); @@ -49,7 +49,6 @@ class JsonReaderImpl implements JsonReader { JsonReaderImpl(Reader reader, BufferPool bufferPool, boolean rejectDuplicateKeys, Map config) { parser = new JsonParserImpl(reader, bufferPool, rejectDuplicateKeys, config); - this.bufferPool = bufferPool; } JsonReaderImpl(InputStream in, BufferPool bufferPool) { @@ -58,7 +57,6 @@ class JsonReaderImpl implements JsonReader { JsonReaderImpl(InputStream in, BufferPool bufferPool, boolean rejectDuplicateKeys, Map config) { parser = new JsonParserImpl(in, bufferPool, rejectDuplicateKeys, config); - this.bufferPool = bufferPool; } JsonReaderImpl(InputStream in, Charset charset, BufferPool bufferPool) { @@ -67,7 +65,6 @@ class JsonReaderImpl implements JsonReader { JsonReaderImpl(InputStream in, Charset charset, BufferPool bufferPool, boolean rejectDuplicateKeys, Map config) { parser = new JsonParserImpl(in, charset, bufferPool, rejectDuplicateKeys, config); - this.bufferPool = bufferPool; } @Override