HDFS-7198. Fix "unchecked conversion" warning in DFSClient#getPathTraceScope (cmccabe)
This commit is contained in:
parent
db7f165319
commit
1ceb326933
@ -30,7 +30,7 @@ public class TraceSamplerFactory {
|
||||
private static final Logger LOG =
|
||||
LoggerFactory.getLogger(TraceSamplerFactory.class);
|
||||
|
||||
public static Sampler createSampler(Configuration conf) {
|
||||
public static Sampler<?> createSampler(Configuration conf) {
|
||||
String samplerStr = conf.get(CommonConfigurationKeys.HADOOP_TRACE_SAMPLER,
|
||||
CommonConfigurationKeys.HADOOP_TRACE_SAMPLER_DEFAULT);
|
||||
if (samplerStr.equals("NeverSampler")) {
|
||||
|
@ -386,6 +386,9 @@ Release 2.7.0 - UNRELEASED
|
||||
HDFS-7194. Fix findbugs "inefficient new String constructor" warning in
|
||||
DFSClient#PATH (yzhang via cmccabe)
|
||||
|
||||
HDFS-7198. Fix or suppress findbugs "unchecked conversion" warning in
|
||||
DFSClient#getPathTraceScope (cmccabe)
|
||||
|
||||
Release 2.6.0 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
@ -277,7 +277,7 @@ public class DFSClient implements java.io.Closeable, RemotePeerFactory,
|
||||
@VisibleForTesting
|
||||
KeyProvider provider;
|
||||
private final SpanReceiverHost spanReceiverHost;
|
||||
private final Sampler traceSampler;
|
||||
private final Sampler<?> traceSampler;
|
||||
|
||||
/**
|
||||
* DFSClient configuration
|
||||
|
Loading…
Reference in New Issue
Block a user