[errorprone] Fix InconsistentCapitalization
See https://errorprone.info/bugpattern/InconsistentCapitalization Change-Id: Ibd71a992128ca2e5f916a08dd11da67c5a2f8aad
This commit is contained in:
parent
790fa7e81d
commit
5705e2af13
|
@ -551,7 +551,7 @@ private BouncyCastleGpgKey findSecretKeyForKeyBoxPublicKey(
|
|||
* 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 @@ private BouncyCastleGpgKey findSecretKeyForKeyBoxPublicKey(
|
|||
* @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 @@ private PGPSecretKey findSecretKeyInLegacySecring(String signingkey,
|
|||
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();
|
||||
|
|
Loading…
Reference in New Issue