mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-16 16:28:48 +10:00
add @SuppressWarnings("deprecation") to methods that contains deprecated
methods
This commit is contained in:
+1
@@ -55,6 +55,7 @@ public class HbaseAgentInfoDao implements AgentInfoDao {
|
||||
private ThriftBoMapper<ServerMetaDataBo, TServerMetaData> serverMetaDataBoMapper;
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public void insert(TAgentInfo agentInfo) {
|
||||
if (agentInfo == null) {
|
||||
throw new NullPointerException("agentInfo must not be null");
|
||||
|
||||
+1
@@ -58,6 +58,7 @@ public class HbaseAgentStatDao implements AgentStatDao {
|
||||
@Qualifier("agentStatRowKeyDistributor")
|
||||
private AbstractRowKeyDistributor rowKeyDistributor;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public void insert(final TAgentStat agentStat) {
|
||||
if (agentStat == null) {
|
||||
throw new NullPointerException("agentStat must not be null");
|
||||
|
||||
+1
@@ -48,6 +48,7 @@ public class HbaseApiMetaDataDao implements ApiMetaDataDao {
|
||||
private RowKeyDistributorByHashPrefix rowKeyDistributorByHashPrefix;
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public void insert(TApiMetaData apiMetaData) {
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("insert:{}", apiMetaData);
|
||||
|
||||
+1
@@ -44,6 +44,7 @@ public class HbaseApplicationIndexDao implements ApplicationIndexDao {
|
||||
private HbaseOperations2 hbaseTemplate;
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public void insert(final TAgentInfo agentInfo) {
|
||||
if (agentInfo == null) {
|
||||
throw new NullPointerException("agentInfo must not be null");
|
||||
|
||||
+1
@@ -52,6 +52,7 @@ public class HbaseApplicationTraceIndexDao implements ApplicationTraceIndexDao {
|
||||
private AbstractRowKeyDistributor rowKeyDistributor;
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public void insert(final TSpan span) {
|
||||
if (span == null) {
|
||||
throw new NullPointerException("span must not be null");
|
||||
|
||||
+1
@@ -47,6 +47,7 @@ public class HbaseSqlMetaDataDao implements SqlMetaDataDao {
|
||||
private RowKeyDistributorByHashPrefix rowKeyDistributorByHashPrefix;
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public void insert(TSqlMetaData sqlMetaData) {
|
||||
if (sqlMetaData == null) {
|
||||
throw new NullPointerException("sqlMetaData must not be null");
|
||||
|
||||
@@ -51,6 +51,7 @@ import static com.navercorp.pinpoint.common.hbase.HBaseTables.*;
|
||||
* @author emeroad
|
||||
*/
|
||||
@Repository
|
||||
@SuppressWarnings("deprecation")
|
||||
public class HbaseTraceDao implements TracesDao {
|
||||
|
||||
private final Logger logger = LoggerFactory.getLogger(this.getClass());
|
||||
|
||||
+1
@@ -26,6 +26,7 @@ import com.navercorp.pinpoint.bootstrap.util.MetaObject;
|
||||
* @author netspider
|
||||
* @author emeroad
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public class CacheManagerConstructInterceptor implements SimpleAroundInterceptor {
|
||||
|
||||
private final PLogger logger = PLoggerFactory.getLogger(this.getClass());
|
||||
|
||||
+1
@@ -27,6 +27,7 @@ import net.sf.ehcache.Element;
|
||||
/**
|
||||
* @author harebox
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public class FrontCacheGetFutureConstructInterceptor implements SimpleAroundInterceptor, TargetClassLoader {
|
||||
|
||||
private final PLogger logger = PLoggerFactory.getLogger(this.getClass());
|
||||
|
||||
+1
@@ -29,6 +29,7 @@ import net.spy.memcached.ops.Operation;
|
||||
* @author harebox
|
||||
* @author emeroad
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public class FutureSetOperationInterceptor implements SimpleAroundInterceptor, TargetClassLoader {
|
||||
|
||||
private final PLogger logger = PLoggerFactory.getLogger(this.getClass());
|
||||
|
||||
+1
@@ -34,6 +34,7 @@ import org.slf4j.LoggerFactory;
|
||||
* @author cowboy93, netspider
|
||||
* @author hyungil.jeong
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public class StandardServiceModifier extends AbstractModifier {
|
||||
|
||||
private final Logger logger = LoggerFactory.getLogger(this.getClass());
|
||||
|
||||
+1
@@ -30,6 +30,7 @@ import com.navercorp.pinpoint.bootstrap.logging.PLoggerFactory;
|
||||
* @author emeroad
|
||||
* @author hyungil.jeong
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public class StandardServiceStartInterceptor implements SimpleAroundInterceptor, TraceContextSupport, TargetClassLoader {
|
||||
|
||||
private final PLogger logger = PLoggerFactory.getLogger(this.getClass());
|
||||
|
||||
+1
@@ -25,6 +25,7 @@ import com.navercorp.pinpoint.bootstrap.logging.PLoggerFactory;
|
||||
/**
|
||||
* @author emeroad
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public class StandardServiceStopInterceptor implements SimpleAroundInterceptor, TargetClassLoader {
|
||||
|
||||
private final PLogger logger = PLoggerFactory.getLogger(this.getClass());
|
||||
|
||||
@@ -85,6 +85,7 @@ public class HbaseApplicationIndexDao implements ApplicationIndexDao {
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public void deleteAgentId(String applicationName, String agentId) {
|
||||
if (StringUtils.isEmpty(applicationName)) {
|
||||
throw new IllegalArgumentException("applicationName cannot be empty");
|
||||
|
||||
+1
@@ -175,6 +175,7 @@ public class HbaseApplicationTraceIndexDao implements ApplicationTraceIndexDao {
|
||||
private int lastTransactionElapsed = -1;
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public void handleLastResult(Result lastResult) {
|
||||
if (lastResult == null) {
|
||||
return;
|
||||
|
||||
+1
@@ -103,6 +103,7 @@ public class HbaseMapStatisticsCalleeDao implements MapStatisticsCalleeDao {
|
||||
* </pre>
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public List<LinkDataMap> selectCalleeStatistics(Application callerApplication, Application calleeApplication, Range range) {
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("selectCalleeStatistics. {}, {}, {}", callerApplication, calleeApplication, range);
|
||||
|
||||
+1
@@ -137,6 +137,7 @@ public class PreparedStatementParameterLogger implements PreparedStatement {
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException {
|
||||
setColumn(x);
|
||||
}
|
||||
|
||||
@@ -129,6 +129,7 @@ public class DefaultFilterBuilder implements FilterBuilder {
|
||||
return chain.get();
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
private FromToResponseFilter createFromToResponseFilter(FilterDescriptor descriptor, FilterHint hint) {
|
||||
if (descriptor == null) {
|
||||
throw new NullPointerException("methodDescriptor must not be null");
|
||||
@@ -152,6 +153,7 @@ public class DefaultFilterBuilder implements FilterBuilder {
|
||||
return new FromToResponseFilter(fromServiceType, fromApplicationName, fromAgentName, toServiceType, toApplicationName, toAgentName,fromResponseTime, toResponseTime, includeFailed, hint);
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
private FromToFilter createFromToFilter(FilterDescriptor descriptor) {
|
||||
|
||||
final List<ServiceType> fromServiceTypeList = registry.findDesc(descriptor.getFromServiceType());
|
||||
|
||||
@@ -33,6 +33,7 @@ import java.util.List;
|
||||
public class AgentIdMapper implements RowMapper<List<String>> {
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public List<String> mapRow(Result result, int rowNum) throws Exception {
|
||||
if (result.isEmpty()) {
|
||||
return Collections.emptyList();
|
||||
|
||||
@@ -47,6 +47,7 @@ public class AgentInfoMapper implements RowMapper<List<AgentInfoBo>> {
|
||||
private ServiceTypeRegistryService registry;
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public List<AgentInfoBo> mapRow(Result result, int rowNum) throws Exception {
|
||||
if (result.isEmpty()) {
|
||||
return Collections.emptyList();
|
||||
@@ -63,6 +64,7 @@ public class AgentInfoMapper implements RowMapper<List<AgentInfoBo>> {
|
||||
return agentInfoBoList;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
private AgentInfoBo mappingAgentInfo(KeyValue keyValue) {
|
||||
byte[] rowKey = keyValue.getRow();
|
||||
String agentId = Bytes.toString(rowKey, 0, PinpointConstants.AGENT_NAME_MAX_LEN - 1).trim();
|
||||
|
||||
@@ -41,6 +41,7 @@ public class AnnotationMapper implements RowMapper<Map<Long, List<AnnotationBo>>
|
||||
private final Logger logger = LoggerFactory.getLogger(this.getClass());
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public Map<Long, List<AnnotationBo>> mapRow(Result result, int rowNum) throws Exception {
|
||||
if (result.isEmpty()) {
|
||||
return Collections.emptyMap();
|
||||
|
||||
@@ -47,6 +47,7 @@ public class ApiMetaDataMapper implements RowMapper<List<ApiMetaDataBo>> {
|
||||
private RowKeyDistributorByHashPrefix rowKeyDistributorByHashPrefix;
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public List<ApiMetaDataBo> mapRow(Result result, int rowNum) throws Exception {
|
||||
if (result.isEmpty()) {
|
||||
return Collections.emptyList();
|
||||
|
||||
@@ -42,6 +42,7 @@ public class ApplicationNameMapper implements RowMapper<List<Application>> {
|
||||
private ServiceTypeRegistryService registry;
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public List<Application> mapRow(Result result, int rowNum) throws Exception {
|
||||
if (result.isEmpty()) {
|
||||
return Collections.emptyList();
|
||||
|
||||
@@ -49,6 +49,7 @@ public class HostApplicationMapperVer2 implements RowMapper<List<AcceptApplicati
|
||||
private ServiceTypeRegistryService registry;
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public List<AcceptApplication> mapRow(Result result, int rowNum) throws Exception {
|
||||
if (result.isEmpty()) {
|
||||
return Collections.emptyList();
|
||||
|
||||
@@ -61,6 +61,7 @@ public class MapStatisticsCalleeMapper implements RowMapper<LinkDataMap> {
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public LinkDataMap mapRow(Result result, int rowNum) throws Exception {
|
||||
if (result.isEmpty()) {
|
||||
return new LinkDataMap();
|
||||
|
||||
@@ -67,6 +67,7 @@ public class MapStatisticsCallerMapper implements RowMapper<LinkDataMap> {
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public LinkDataMap mapRow(Result result, int rowNum) throws Exception {
|
||||
if (result.isEmpty()) {
|
||||
return new LinkDataMap();
|
||||
@@ -140,6 +141,7 @@ public class MapStatisticsCallerMapper implements RowMapper<LinkDataMap> {
|
||||
return linkDataMap;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
private long getValueToLong(KeyValue kv) {
|
||||
return Bytes.toLong(kv.getBuffer(), kv.getValueOffset());
|
||||
}
|
||||
|
||||
@@ -40,6 +40,7 @@ public class ResponseTimeMapper implements RowMapper<ResponseTime> {
|
||||
private ServiceTypeRegistryService registry;
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public ResponseTime mapRow(Result result, int rowNum) throws Exception {
|
||||
if (result.isEmpty()) {
|
||||
return null;
|
||||
|
||||
@@ -51,6 +51,7 @@ public class SpanMapper implements RowMapper<List<SpanBo>> {
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public List<SpanBo> mapRow(Result result, int rowNum) throws Exception {
|
||||
if (result.isEmpty()) {
|
||||
return Collections.emptyList();
|
||||
|
||||
@@ -43,6 +43,7 @@ public class SqlMetaDataMapper implements RowMapper<List<SqlMetaDataBo>> {
|
||||
private RowKeyDistributorByHashPrefix rowKeyDistributorByHashPrefix;
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public List<SqlMetaDataBo> mapRow(Result result, int rowNum) throws Exception {
|
||||
if (result.isEmpty()) {
|
||||
return Collections.emptyList();
|
||||
|
||||
@@ -42,6 +42,7 @@ public class StringMetaDataMapper implements RowMapper<List<StringMetaDataBo>> {
|
||||
private RowKeyDistributorByHashPrefix rowKeyDistributorByHashPrefix;
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public List<StringMetaDataBo> mapRow(Result result, int rowNum) throws Exception {
|
||||
if (result.isEmpty()) {
|
||||
return Collections.emptyList();
|
||||
|
||||
@@ -41,6 +41,7 @@ import org.springframework.stereotype.Component;
|
||||
public class TraceIndexScatterMapper implements RowMapper<List<Dot>> {
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public List<Dot> mapRow(Result result, int rowNum) throws Exception {
|
||||
if (result.isEmpty()) {
|
||||
return Collections.emptyList();
|
||||
@@ -56,6 +57,7 @@ public class TraceIndexScatterMapper implements RowMapper<List<Dot>> {
|
||||
return list;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
private Dot createDot(KeyValue kv) {
|
||||
final byte[] buffer = kv.getBuffer();
|
||||
|
||||
|
||||
@@ -46,6 +46,7 @@ public class TraceIndexScatterMapper2 implements RowMapper<List<Dot>> {
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public List<Dot> mapRow(Result result, int rowNum) throws Exception {
|
||||
if (result.isEmpty()) {
|
||||
return Collections.emptyList();
|
||||
@@ -63,6 +64,7 @@ public class TraceIndexScatterMapper2 implements RowMapper<List<Dot>> {
|
||||
return list;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
private Dot createDot(KeyValue kv) {
|
||||
final byte[] buffer = kv.getBuffer();
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@ public class TransactionIdMapper implements RowMapper<List<TransactionId>> {
|
||||
// private AbstractRowKeyDistributor rowKeyDistributor;
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public List<TransactionId> mapRow(Result result, int rowNum) throws Exception {
|
||||
if (result.isEmpty()) {
|
||||
return Collections.emptyList();
|
||||
|
||||
@@ -24,6 +24,7 @@ import org.apache.hadoop.hbase.util.Bytes;
|
||||
*/
|
||||
public class KeyValueUtils {
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public static boolean equalsFamily(KeyValue keyValue, byte[] familyName) {
|
||||
if (keyValue == null) {
|
||||
throw new NullPointerException("keyValue must not be null");
|
||||
|
||||
Reference in New Issue
Block a user