Skip to content
Permalink
Browse files
8285745: Re-examine PushbackInputStream mark/reset
Reviewed-by: jpai, alanb
  • Loading branch information
Brian Burkhalter committed May 2, 2022
1 parent 41de506 commit 9d8c3bf9f8bc2083c44b7203e81c007d685b9b61
Showing 1 changed file with 3 additions and 3 deletions.
@@ -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 boolean markSupported() {
* 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 synchronized void mark(int readlimit) {
* @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");
}

1 comment on commit 9d8c3bf

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 9d8c3bf May 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.