Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused private field #75

Merged
merged 1 commit into from
Jan 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 1 addition & 4 deletions impl/src/main/java/org/eclipse/parsson/JsonReaderImpl.java
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -41,15 +42,13 @@
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());
}

JsonReaderImpl(Reader reader, BufferPool bufferPool, boolean rejectDuplicateKeys, Map<String, ?> config) {
parser = new JsonParserImpl(reader, bufferPool, rejectDuplicateKeys, config);
this.bufferPool = bufferPool;
}

JsonReaderImpl(InputStream in, BufferPool bufferPool) {
Expand All @@ -58,7 +57,6 @@ class JsonReaderImpl implements JsonReader {

JsonReaderImpl(InputStream in, BufferPool bufferPool, boolean rejectDuplicateKeys, Map<String, ?> config) {
parser = new JsonParserImpl(in, bufferPool, rejectDuplicateKeys, config);
this.bufferPool = bufferPool;
}

JsonReaderImpl(InputStream in, Charset charset, BufferPool bufferPool) {
Expand All @@ -67,7 +65,6 @@ class JsonReaderImpl implements JsonReader {

JsonReaderImpl(InputStream in, Charset charset, BufferPool bufferPool, boolean rejectDuplicateKeys, Map<String, ?> config) {
parser = new JsonParserImpl(in, charset, bufferPool, rejectDuplicateKeys, config);
this.bufferPool = bufferPool;
}

@Override
Expand Down