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

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


The following commit(s) were added to refs/heads/master by this push:
     new 11353dc0 Use final
11353dc0 is described below

commit 11353dc0d8b37d42ecf2f46c80f2f2f50755300c
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Jan 14 08:16:24 2023 -0500

    Use final
---
 commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSelector.java  | 2 +-
 .../main/java/org/apache/commons/vfs2/provider/sftp/IdentityInfo.java | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSelector.java 
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSelector.java
index 944e96ab..8f3d7cae 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSelector.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSelector.java
@@ -45,7 +45,7 @@ public interface FileSelector {
      * @throws Exception if an error occurs.
      * @since 2.10.0
      */
-    default boolean traverseDescendants(FileSelectInfo fileInfo) throws 
Exception {
+    default boolean traverseDescendants(final FileSelectInfo fileInfo) throws 
Exception {
         return traverseDescendents(fileInfo);
     }
 
diff --git 
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/IdentityInfo.java
 
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/IdentityInfo.java
index 266bc8fd..7d927e65 100644
--- 
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/IdentityInfo.java
+++ 
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/IdentityInfo.java
@@ -90,14 +90,14 @@ public class IdentityInfo implements IdentityProvider {
     }
 
     @Override
-    public boolean equals(Object obj) {
+    public boolean equals(final Object obj) {
         if (this == obj) {
             return true;
         }
         if (!(obj instanceof IdentityInfo)) {
             return false;
         }
-        IdentityInfo other = (IdentityInfo) obj;
+        final IdentityInfo other = (IdentityInfo) obj;
         return Arrays.equals(passphrase, other.passphrase) && 
Objects.equals(privateKey, other.privateKey) && Objects.equals(publicKey, 
other.publicKey);
     }
 

Reply via email to