]> source.dussan.org Git - jgit.git/commitdiff
Fix cryptoVer constant name to CRYPTO_VER 17/85017/2
authorShawn Pearce <spearce@spearce.org>
Mon, 14 Nov 2016 22:52:46 +0000 (14:52 -0800)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Mon, 14 Nov 2016 23:52:43 +0000 (15:52 -0800)
Change-Id: I46c39f2eceb4d58e49bd6273b87711f35250ab5c

org.eclipse.jgit/src/org/eclipse/jgit/transport/WalkEncryption.java

index bdac7eb3032a445f636bd1fb0ff94f988201f38d..4c3fdd84f2f628dbb0db611985b5b7bed31f755a 100644 (file)
@@ -175,7 +175,7 @@ abstract class WalkEncryption {
                // Size 16, see com.sun.crypto.provider.AESConstants.AES_BLOCK_SIZE
                static final byte[] ZERO_AES_IV = new byte[16];
 
-               private static final String cryptoVer = VERSION;
+               private static final String CRYPTO_VER = VERSION;
 
                private final String cryptoAlg;
 
@@ -227,14 +227,14 @@ abstract class WalkEncryption {
 
                @Override
                void request(final HttpURLConnection u, final String prefix) {
-                       u.setRequestProperty(prefix + JETS3T_CRYPTO_VER, cryptoVer);
+                       u.setRequestProperty(prefix + JETS3T_CRYPTO_VER, CRYPTO_VER);
                        u.setRequestProperty(prefix + JETS3T_CRYPTO_ALG, cryptoAlg);
                }
 
                @Override
                void validate(final HttpURLConnection u, final String prefix)
                                throws IOException {
-                       validateImpl(u, prefix, cryptoVer, cryptoAlg);
+                       validateImpl(u, prefix, CRYPTO_VER, cryptoAlg);
                }
 
                @Override