accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [09/26] git commit: ACCUMULO-2292 Use the constant utf8 Charset already defined.
Date Sat, 01 Feb 2014 03:23:08 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/8d909364
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/8d909364
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/8d909364

Branch: refs/heads/2292-findbugs
Commit: 8d9093640c5b9dc738bdf3eb7dddff055d8da289
Parents: de76b96
Author: Josh Elser <elserj@apache.org>
Authored: Thu Jan 30 16:03:43 2014 -0500
Committer: Josh Elser <elserj@apache.org>
Committed: Fri Jan 31 22:18:52 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/8d909364/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