aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-04-03 16:12:52 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2012-04-03 16:12:52 +0200
commite7b778f1ff40234f3fd68cb0fc55ae50453330de (patch)
tree6543e1a2e56c90f6cff8f701606bd1dee4338f49 /sonar-plugin-api/src
parent4100ba3ff7617ea9ab5096787d90ed13376cc5f3 (diff)
downloadsonarqube-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.java2
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);
}