This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git

commit 5080919bf045167fabb85202ef8b1baee783acad
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Jun 1 12:22:21 2026 -0400

    Use final.
---
 src/main/java/org/apache/commons/net/io/Util.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/apache/commons/net/io/Util.java 
b/src/main/java/org/apache/commons/net/io/Util.java
index c456542d..d16dad95 100644
--- a/src/main/java/org/apache/commons/net/io/Util.java
+++ b/src/main/java/org/apache/commons/net/io/Util.java
@@ -133,12 +133,12 @@ public final class Util {
             return IOUtils.copyLarge(source, listener == null ? dest : new 
ProxyWriter(dest) {
 
                 @Override
-                protected void afterWrite(int n) throws IOException {
+                protected void afterWrite(final int n) throws IOException {
                     dest.flush();
                     listener.bytesTransferred(total.addAndGet(n), n, 
streamSize);
                 }
             }, new char[bufferSize > 0 ? bufferSize : 
DEFAULT_COPY_BUFFER_SIZE]);
-        } catch (IOException e) {
+        } catch (final IOException e) {
             throw new CopyStreamException("IOException caught while copying.", 
total.get(), e);
         }
     }
@@ -227,7 +227,7 @@ public final class Util {
             return IOUtils.copyLarge(source, listener == null ? dest : new 
ProxyOutputStream(dest) {
 
                 @Override
-                protected void afterWrite(int n) throws IOException {
+                protected void afterWrite(final int n) throws IOException {
                     if (flush) {
                         dest.flush();
                     }
@@ -235,7 +235,7 @@ public final class Util {
                 }
 
             }, new byte[bufferSize > 0 ? bufferSize : 
DEFAULT_COPY_BUFFER_SIZE]);
-        } catch (IOException e) {
+        } catch (final IOException e) {
             throw new CopyStreamException("IOException caught while copying.", 
total.get(), e);
         }
     }

Reply via email to