]> source.dussan.org Git - jgit.git/commitdiff
Update name of InsecureCipherMode error-prone pattern 27/91227/1
authorJonathan Nieder <jrn@google.com>
Thu, 16 Feb 2017 00:00:34 +0000 (16:00 -0800)
committerJonathan Nieder <jrn@google.com>
Thu, 16 Feb 2017 00:01:42 +0000 (16:01 -0800)
Without this, using bazel 0.4.4 to build fails:

 ERROR: jgit/org.eclipse.jgit/BUILD:29:1: Java compilation in rule '//org.eclipse.jgit:insecure_cipher_factory' failed: Worker process sent response with exit code: 1.
 jgit/src/org/eclipse/jgit/transport/InsecureCipherFactory.java:63: error: [InsecureCryptoUsage] Insecure usage of a crypto API: the transformation is not a compile-time constant expression.
                return Cipher.getInstance(algo);
                                         ^
    (see http://errorprone.info/bugpattern/InsecureCryptoUsage)

Change-Id: I7f9a3a5117e42cb68544674f5312df0368aa3674

org.eclipse.jgit/BUILD

index a9b01e9ea671ef0ea9d101db96301196aba6a7c9..ed0fbf0650e8b3e32fbc5973d9f52bd0284465b9 100644 (file)
@@ -29,5 +29,5 @@ java_library(
 java_library(
     name = "insecure_cipher_factory",
     srcs = INSECURE_CIPHER_FACTORY,
-    javacopts = ["-Xep:InsecureCipherMode:OFF"],
+    javacopts = ["-Xep:InsecureCryptoUsage:OFF"],
 )