HDFS-7194 Fix findbugs "inefficient new String constructor" warning in DFSClient#PATH (yzhang via cmccabe)
(cherry picked from commit 8dc6abf2f4
)
This commit is contained in:
parent
b5158c8d24
commit
eeb39dc218
|
@ -7,12 +7,16 @@ Release 2.7.0 - UNRELEASED
|
||||||
NEW FEATURES
|
NEW FEATURES
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
|
|
||||||
HDFS-7055. Add tracing to DFSInputStream (cmccabe)
|
HDFS-7055. Add tracing to DFSInputStream (cmccabe)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
|
||||||
|
HDFS-7194. Fix findbugs "inefficient new String constructor" warning in
|
||||||
|
DFSClient#PATH (yzhang via cmccabe)
|
||||||
|
|
||||||
Release 2.6.0 - UNRELEASED
|
Release 2.6.0 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -3174,8 +3174,7 @@ public class DFSClient implements java.io.Closeable, RemotePeerFactory,
|
||||||
return saslClient;
|
return saslClient;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final byte[] PATH =
|
private static final byte[] PATH = "path".getBytes(Charset.forName("UTF-8"));
|
||||||
new String("path").getBytes(Charset.forName("UTF-8"));
|
|
||||||
|
|
||||||
TraceScope getPathTraceScope(String description, String path) {
|
TraceScope getPathTraceScope(String description, String path) {
|
||||||
TraceScope scope = Trace.startSpan(description, traceSampler);
|
TraceScope scope = Trace.startSpan(description, traceSampler);
|
||||||
|
|
Loading…
Reference in New Issue