11/*
2- * Copyright (c) 1996, 2024 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 1996, 2025 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
@@ -508,9 +508,6 @@ public void write(int b) {
508508 out .flush ();
509509 }
510510 }
511- catch (InterruptedIOException x ) {
512- Thread .currentThread ().interrupt ();
513- }
514511 catch (IOException x ) {
515512 trouble = true ;
516513 }
@@ -541,9 +538,6 @@ public void write(byte[] buf, int off, int len) {
541538 out .flush ();
542539 }
543540 }
544- catch (InterruptedIOException x ) {
545- Thread .currentThread ().interrupt ();
546- }
547541 catch (IOException x ) {
548542 trouble = true ;
549543 }
@@ -626,8 +620,6 @@ private void write(char[] buf) {
626620 }
627621 }
628622 }
629- } catch (InterruptedIOException x ) {
630- Thread .currentThread ().interrupt ();
631623 } catch (IOException x ) {
632624 trouble = true ;
633625 }
@@ -649,9 +641,6 @@ private void writeln(char[] buf) {
649641 out .flush ();
650642 }
651643 }
652- catch (InterruptedIOException x ) {
653- Thread .currentThread ().interrupt ();
654- }
655644 catch (IOException x ) {
656645 trouble = true ;
657646 }
@@ -668,9 +657,6 @@ private void write(String s) {
668657 out .flush ();
669658 }
670659 }
671- catch (InterruptedIOException x ) {
672- Thread .currentThread ().interrupt ();
673- }
674660 catch (IOException x ) {
675661 trouble = true ;
676662 }
@@ -692,9 +678,6 @@ private void writeln(String s) {
692678 out .flush ();
693679 }
694680 }
695- catch (InterruptedIOException x ) {
696- Thread .currentThread ().interrupt ();
697- }
698681 catch (IOException x ) {
699682 trouble = true ;
700683 }
@@ -711,9 +694,6 @@ private void newLine() {
711694 out .flush ();
712695 }
713696 }
714- catch (InterruptedIOException x ) {
715- Thread .currentThread ().interrupt ();
716- }
717697 catch (IOException x ) {
718698 trouble = true ;
719699 }
@@ -1182,8 +1162,6 @@ public PrintStream format(String format, Object ... args) {
11821162 formatter = new Formatter ((Appendable ) this );
11831163 formatter .format (Locale .getDefault (Locale .Category .FORMAT ), format , args );
11841164 }
1185- } catch (InterruptedIOException x ) {
1186- Thread .currentThread ().interrupt ();
11871165 } catch (IOException x ) {
11881166 trouble = true ;
11891167 }
@@ -1238,8 +1216,6 @@ public PrintStream format(Locale l, String format, Object ... args) {
12381216 formatter = new Formatter (this , l );
12391217 formatter .format (l , format , args );
12401218 }
1241- } catch (InterruptedIOException x ) {
1242- Thread .currentThread ().interrupt ();
12431219 } catch (IOException x ) {
12441220 trouble = true ;
12451221 }
0 commit comments