HBASE-7128 Reduce annoying catch clauses of UnsupportedEncodingException that is never thrown because of UTF-8, addendum
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1409881 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3989c72387
commit
54093f6560
|
@ -19,7 +19,6 @@
|
|||
package org.apache.hadoop.hbase;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.NavigableMap;
|
||||
|
@ -90,12 +89,7 @@ public abstract class HBaseTestCase extends TestCase {
|
|||
|
||||
private void init() {
|
||||
conf = HBaseConfiguration.create();
|
||||
try {
|
||||
START_KEY = new String(START_KEY_BYTES, HConstants.UTF8_ENCODING);
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
LOG.fatal("error during initialization", e);
|
||||
fail();
|
||||
}
|
||||
START_KEY = new String(START_KEY_BYTES, HConstants.UTF8_CHARSET);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue