8285745: Re-examine PushbackInputStream mark/reset

Reviewed-by: jpai, alanb
This commit is contained in:
Brian Burkhalter 2022-05-02 18:19:36 +00:00
parent 41de506ed6
commit 9d8c3bf9f8

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1994, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1994, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -345,7 +345,7 @@ public class PushbackInputStream extends FilterInputStream {
* the mark position becomes invalid.
* @see java.io.InputStream#reset()
*/
public synchronized void mark(int readlimit) {
public void mark(int readlimit) {
}
/**
@ -360,7 +360,7 @@ public class PushbackInputStream extends FilterInputStream {
* @see java.io.InputStream#mark(int)
* @see java.io.IOException
*/
public synchronized void reset() throws IOException {
public void reset() throws IOException {
throw new IOException("mark/reset not supported");
}