8284930: Re-examine FilterInputStream mark/reset

Reviewed-by: alanb, jpai, dfuchs, lancea
This commit is contained in:
Brian Burkhalter 2022-04-26 15:35:45 +00:00
parent 97a0a292a6
commit a3b788144e
2 changed files with 6 additions and 6 deletions

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
@ -683,7 +683,7 @@ public abstract class InputStream implements Closeable {
* the mark position becomes invalid.
* @see java.io.InputStream#reset()
*/
public synchronized void mark(int readlimit) {}
public void mark(int readlimit) {}
/**
* Repositions this stream to the position at the time the
@ -729,7 +729,7 @@ public abstract class InputStream implements Closeable {
* @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");
}