accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [04/10] git commit: ACCUMULO-2292 Use the constant utf8 Charset already defined.
Date Fri, 31 Jan 2014 04:01:56 GMT
ACCUMULO-2292 Use the constant utf8 Charset already defined.


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/a11dae7d
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/a11dae7d
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/a11dae7d

Branch: refs/heads/2292-findbugs
Commit: a11dae7dabaf8db710149c8def7ec863a715331d
Parents: 3636136
Author: Josh Elser <elserj@apache.org>
Authored: Thu Jan 30 16:03:43 2014 -0500
Committer: Josh Elser <elserj@apache.org>
Committed: Thu Jan 30 17:19:28 2014 -0500

----------------------------------------------------------------------
 core/src/main/java/org/apache/accumulo/core/cli/ClientOpts.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/a11dae7d/core/src/main/java/org/apache/accumulo/core/cli/ClientOpts.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/accumulo/core/cli/ClientOpts.java b/core/src/main/java/org/apache/accumulo/core/cli/ClientOpts.java
index 7d5d0b8..ff31003 100644
--- a/core/src/main/java/org/apache/accumulo/core/cli/ClientOpts.java
+++ b/core/src/main/java/org/apache/accumulo/core/cli/ClientOpts.java
@@ -16,7 +16,6 @@
  */
 package org.apache.accumulo.core.cli;
 
-import java.nio.charset.Charset;
 import java.util.Iterator;
 import java.util.LinkedHashMap;
 import java.util.Map;
@@ -80,12 +79,12 @@ public class ClientOpts extends Help {
     public byte[] value;
     
     public Password(String dfault) {
-      value = dfault.getBytes(Charset.forName("UTF-8"));
+      value = dfault.getBytes(Constants.UTF8);
     }
     
     @Override
     public String toString() {
-      return new String(value);
+      return new String(value, Constants.UTF8);
     }
   }
   


Mime
View raw message