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

(cherry picked from commit 1ceb326933)
This commit is contained in:
Colin Patrick Mccabe 2014-10-10 13:03:29 -07:00
parent 8ef83a9480
commit 4c0bc45978
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

@ -26,6 +26,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