HDFS-7198. Fix "unchecked conversion" warning in DFSClient#getPathTraceScope (cmccabe)

This commit is contained in:
Colin Patrick Mccabe 2014-10-10 13:03:29 -07:00
parent db7f165319
commit 1ceb326933
3 changed files with 5 additions and 2 deletions

View File

@ -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")) {

View File

@ -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

View File

@ -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