Skip to content

Commit 3bb84c2

Browse files
author
Gary Gregory
committed
Use final.
1 parent b3ce147 commit 3bb84c2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public Writer append(final CharSequence csq, final int start, final int end) thr
9292
@Override
9393
public Writer append(final CharSequence csq) throws IOException {
9494
try {
95-
int len = IOUtils.length(csq);
95+
final int len = IOUtils.length(csq);
9696
beforeWrite(len);
9797
out.append(csq);
9898
afterWrite(len);
@@ -126,7 +126,7 @@ public void write(final int c) throws IOException {
126126
@Override
127127
public void write(final char[] cbuf) throws IOException {
128128
try {
129-
int len = IOUtils.length(cbuf);
129+
final int len = IOUtils.length(cbuf);
130130
beforeWrite(len);
131131
out.write(cbuf);
132132
afterWrite(len);
@@ -161,7 +161,7 @@ public void write(final char[] cbuf, final int off, final int len) throws IOExce
161161
@Override
162162
public void write(final String str) throws IOException {
163163
try {
164-
int len = IOUtils.length(str);
164+
final int len = IOUtils.length(str);
165165
beforeWrite(len);
166166
out.write(str);
167167
afterWrite(len);

0 commit comments

Comments
 (0)