summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.ssh.apache
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2023-09-20 15:03:53 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2023-09-25 22:06:12 +0200
commit4cfe27dd0689be2f2cdf8c4e9d2cf4811052915b (patch)
tree2dd857246f2550198ab8a74fb7fcf86f48f91f60 /org.eclipse.jgit.ssh.apache
parentac3794bf01a9cd30d7cd0642cae8c530536edbd6 (diff)
downloadjgit-4cfe27dd0689be2f2cdf8c4e9d2cf4811052915b.tar.gz
jgit-4cfe27dd0689be2f2cdf8c4e9d2cf4811052915b.zip
[errorprone] Suppress ByteBufferBackingArray
The byte buffers used here are created by wrapping a byte[]. See https://errorprone.info/bugpattern/ByteBufferBackingArray Change-Id: Idbc16d5ae4ff9f64b97be07a3cdf190716da191f
Diffstat (limited to 'org.eclipse.jgit.ssh.apache')
-rw-r--r--org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/auth/BasicAuthentication.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/auth/BasicAuthentication.java b/org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/auth/BasicAuthentication.java
index e5f884e299..8866976c89 100644
--- a/org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/auth/BasicAuthentication.java
+++ b/org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/auth/BasicAuthentication.java
@@ -63,6 +63,7 @@ public abstract class BasicAuthentication<ParameterType, TokenType>
this.password = convert(initialPassword);
}
+ @SuppressWarnings("ByteBufferBackingArray")
private byte[] convert(char[] pass) {
if (pass == null) {
return new byte[0];