Skip to content

Commit 48f6d3f

Browse files
author
Gary Gregory
committed
Use the same names for arguments as the JDK, less confusing.
1 parent 700624d commit 48f6d3f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/main/java/org/apache/commons/io/output/ProxyWriter.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,19 +122,19 @@ public void write(final int c) throws IOException {
122122

123123
/**
124124
* Invokes the delegate's <code>write(char[])</code> method.
125-
* @param chr the characters to write
125+
* @param cbuf the characters to write
126126
* @throws IOException if an I/O error occurs
127127
*/
128128
@Override
129-
public void write(final char[] chr) throws IOException {
129+
public void write(final char[] cbuf) throws IOException {
130130
try {
131131
int len = 0;
132-
if (chr != null) {
133-
len = chr.length;
132+
if (cbuf != null) {
133+
len = cbuf.length;
134134
}
135135

136136
beforeWrite(len);
137-
out.write(chr);
137+
out.write(cbuf);
138138
afterWrite(len);
139139
} catch (final IOException e) {
140140
handleIOException(e);

0 commit comments

Comments
 (0)