diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2023-10-05 16:46:21 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2023-10-06 01:35:22 +0200 |
commit | 5705e2af139e6ee019b2234dd07c65980481d0e8 (patch) | |
tree | 76dc8e9f993753f8add3e5198c44914c186c14b6 /org.eclipse.jgit.gpg.bc | |
parent | 790fa7e81d6d039c8e399dc859d1624739eecf5d (diff) | |
download | jgit-5705e2af139e6ee019b2234dd07c65980481d0e8.tar.gz jgit-5705e2af139e6ee019b2234dd07c65980481d0e8.zip |
[errorprone] Fix InconsistentCapitalization
See https://errorprone.info/bugpattern/InconsistentCapitalization
Change-Id: Ibd71a992128ca2e5f916a08dd11da67c5a2f8aad
Diffstat (limited to 'org.eclipse.jgit.gpg.bc')
-rw-r--r-- | org.eclipse.jgit.gpg.bc/src/org/eclipse/jgit/gpg/bc/internal/BouncyCastleGpgKeyLocator.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.jgit.gpg.bc/src/org/eclipse/jgit/gpg/bc/internal/BouncyCastleGpgKeyLocator.java b/org.eclipse.jgit.gpg.bc/src/org/eclipse/jgit/gpg/bc/internal/BouncyCastleGpgKeyLocator.java index d7bf34e3ac..e9032a81fd 100644 --- a/org.eclipse.jgit.gpg.bc/src/org/eclipse/jgit/gpg/bc/internal/BouncyCastleGpgKeyLocator.java +++ b/org.eclipse.jgit.gpg.bc/src/org/eclipse/jgit/gpg/bc/internal/BouncyCastleGpgKeyLocator.java @@ -551,7 +551,7 @@ public class BouncyCastleGpgKeyLocator { * Return the first suitable key for signing in the key ring collection. For * this case we only expect there to be one key available for signing. * - * @param signingkey + * @param signingKeyName * the signing key * @param secringFile * the secring file @@ -562,7 +562,7 @@ public class BouncyCastleGpgKeyLocator { * @throws PGPException * on BouncyCastle errors */ - private PGPSecretKey findSecretKeyInLegacySecring(String signingkey, + private PGPSecretKey findSecretKeyInLegacySecring(String signingKeyName, Path secringFile) throws IOException, PGPException { try (InputStream in = newInputStream(secringFile)) { @@ -570,7 +570,7 @@ public class BouncyCastleGpgKeyLocator { PGPUtil.getDecoderStream(new BufferedInputStream(in)), new JcaKeyFingerprintCalculator()); - String keyId = toFingerprint(signingkey).toLowerCase(Locale.ROOT); + String keyId = toFingerprint(signingKeyName).toLowerCase(Locale.ROOT); Iterator<PGPSecretKeyRing> keyrings = pgpSec.getKeyRings(); while (keyrings.hasNext()) { PGPSecretKeyRing keyRing = keyrings.next(); |