Skip to content

Commit 57070b7

Browse files
committed
java.io.FilterWriter utilizes java.lang.CharSequence.getChars
1 parent ee93d95 commit 57070b7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/java.base/share/classes/java/io/FilterWriter.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1996, 2019, 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
@@ -101,6 +101,11 @@ public void write(String str, int off, int len) throws IOException {
101101
out.write(str, off, len);
102102
}
103103

104+
@Override
105+
void implWrite(CharSequence csq, int start, int end) throws IOException {
106+
out.append(csq, start, end);
107+
}
108+
104109
/**
105110
* Flushes the stream.
106111
*

0 commit comments

Comments
 (0)