aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-process
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-01-23 19:10:08 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-01-23 19:10:08 +0100
commit7d09b43edee2aee10127e9f2f6a33f027bbb975d (patch)
tree4d960885ad3f2f3f2b6db65f6da65d2085c8f172 /server/sonar-process
parent51b8c91b138aab690921e647e30deabbaf61e75b (diff)
downloadsonarqube-7d09b43edee2aee10127e9f2f6a33f027bbb975d.tar.gz
sonarqube-7d09b43edee2aee10127e9f2f6a33f027bbb975d.zip
Fix quality flaws
Diffstat (limited to 'server/sonar-process')
-rw-r--r--server/sonar-process/src/main/java/org/sonar/process/Base64Cipher.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-process/src/main/java/org/sonar/process/Base64Cipher.java b/server/sonar-process/src/main/java/org/sonar/process/Base64Cipher.java
index fb950396352..ca9044850e9 100644
--- a/server/sonar-process/src/main/java/org/sonar/process/Base64Cipher.java
+++ b/server/sonar-process/src/main/java/org/sonar/process/Base64Cipher.java
@@ -26,7 +26,7 @@ import org.apache.commons.io.Charsets;
final class Base64Cipher implements Cipher {
@Override
public String encrypt(String clearText) {
- return Base64.encodeBase64String(clearText.getBytes());
+ return Base64.encodeBase64String(clearText.getBytes(Charsets.UTF_8));
}
@Override