diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-04-03 16:12:52 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-04-03 16:12:52 +0200 |
commit | e7b778f1ff40234f3fd68cb0fc55ae50453330de (patch) | |
tree | 6543e1a2e56c90f6cff8f701606bd1dee4338f49 /sonar-plugin-api/src | |
parent | 4100ba3ff7617ea9ab5096787d90ed13376cc5f3 (diff) | |
download | sonarqube-e7b778f1ff40234f3fd68cb0fc55ae50453330de.tar.gz sonarqube-e7b778f1ff40234f3fd68cb0fc55ae50453330de.zip |
Fix compatibility with Java 5
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/config/AesCipher.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/config/AesCipher.java b/sonar-plugin-api/src/main/java/org/sonar/api/config/AesCipher.java index 279c8f40d5c..5c3bfeaefae 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/config/AesCipher.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/config/AesCipher.java @@ -58,7 +58,7 @@ final class AesCipher extends Cipher { try { javax.crypto.Cipher cipher = javax.crypto.Cipher.getInstance(CRYPTO_KEY); cipher.init(javax.crypto.Cipher.ENCRYPT_MODE, loadSecretFile()); - return new String(Base64.encodeBase64(cipher.doFinal(clearText.getBytes(Charsets.UTF_8)))); + return new String(Base64.encodeBase64(cipher.doFinal(clearText.getBytes("UTF-8")))); } catch (Exception e) { throw Throwables.propagate(e); } |