SLIDER-361 removed use of StandardCharsets

Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/61a5eac0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/61a5eac0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/61a5eac0

Branch: refs/heads/feature/SLIDER-149_Support_a_YARN_service_registry
Commit: 61a5eac0c4d22eb51b19f53a0e509cd8393c873d
Parents: 4612ccb
Author: Billie Rinaldi <billie.rina...@gmail.com>
Authored: Tue Aug 26 04:01:21 2014 -0700
Committer: Billie Rinaldi <billie.rina...@gmail.com>
Committed: Tue Aug 26 04:01:21 2014 -0700

----------------------------------------------------------------------
 .../java/org/apache/slider/accumulo/CustomAuthenticator.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/61a5eac0/app-packages/accumulo/src/main/java/org/apache/slider/accumulo/CustomAuthenticator.java
----------------------------------------------------------------------
diff --git 
a/app-packages/accumulo/src/main/java/org/apache/slider/accumulo/CustomAuthenticator.java
 
b/app-packages/accumulo/src/main/java/org/apache/slider/accumulo/CustomAuthenticator.java
index 322c339..0f50838 100644
--- 
a/app-packages/accumulo/src/main/java/org/apache/slider/accumulo/CustomAuthenticator.java
+++ 
b/app-packages/accumulo/src/main/java/org/apache/slider/accumulo/CustomAuthenticator.java
@@ -29,7 +29,7 @@ import 
org.apache.accumulo.server.security.handler.PermissionHandler;
 import org.apache.accumulo.server.security.handler.ZKAuthenticator;
 
 import java.io.IOException;
-import java.nio.charset.StandardCharsets;
+import java.nio.charset.Charset;
 import java.util.Set;
 
 public final class CustomAuthenticator implements Authenticator {
@@ -68,7 +68,7 @@ public final class CustomAuthenticator implements 
Authenticator {
           ROOT_INITIAL_PASSWORD_PROPERTY + " from " + jksFile, ioe);
     }
     zkAuthenticator.initializeSecurity(credentials, principal,
-        pass.getBytes(StandardCharsets.UTF_8));
+        pass.getBytes(Charset.forName("UTF-8")));
   }
 
   @Override

Reply via email to