From 0e5176efcf3ffe542b0fe07e8737dbcde4ce75b5 Mon Sep 17 00:00:00 2001 From: HyunGil Jeong Date: Tue, 8 Dec 2015 10:59:03 +0900 Subject: [PATCH] #1318 Remove negative timeDiff check as timestamp may be less than 0 --- .../pinpoint/web/service/AgentInfoServiceImpl.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/web/src/main/java/com/navercorp/pinpoint/web/service/AgentInfoServiceImpl.java b/web/src/main/java/com/navercorp/pinpoint/web/service/AgentInfoServiceImpl.java index 582deca402f2..d4ef70f1040e 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/service/AgentInfoServiceImpl.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/service/AgentInfoServiceImpl.java @@ -134,8 +134,7 @@ public ApplicationAgentList getApplicationAgentList(ApplicationAgentList.Key app @Override public Set getAgentsByApplicationName(String applicationName, long timestamp) { - long timeDiff = timestamp; - return this.getAgentsByApplicationName(applicationName, timestamp, timeDiff); + return this.getAgentsByApplicationName(applicationName, timestamp, timestamp); } @Override @@ -143,9 +142,6 @@ public Set getAgentsByApplicationName(String applicationName, long ti if (applicationName == null) { throw new NullPointerException("applicationName must not be null"); } - if (timeDiff < 0) { - throw new IllegalArgumentException("timeDiff must not be less than 0"); - } if (timeDiff > timestamp) { throw new IllegalArgumentException("timeDiff must not be greater than timestamp"); }