Mercurial > hg > thermostat
changeset 1589:47d60e398499
Remove null checks from instrumented code
Reviewed-by: jerboaa
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2014-December/011905.html
author | Omair Majid <omajid@redhat.com> |
---|---|
date | Wed, 03 Dec 2014 12:46:24 -0500 |
parents | 57c56cfc884b |
children | 88778816058c |
files | vm-profiler/jvm-agent/src/main/java/com/redhat/thermostat/vm/profiler/agent/jvm/ProfileRecorder.java |
diffstat | 1 files changed, 0 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/vm-profiler/jvm-agent/src/main/java/com/redhat/thermostat/vm/profiler/agent/jvm/ProfileRecorder.java Wed Dec 03 12:46:24 2014 -0500 +++ b/vm-profiler/jvm-agent/src/main/java/com/redhat/thermostat/vm/profiler/agent/jvm/ProfileRecorder.java Wed Dec 03 12:46:24 2014 -0500 @@ -39,7 +39,6 @@ import java.util.ArrayDeque; import java.util.Deque; import java.util.Map; -import java.util.Objects; import java.util.Queue; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.atomic.AtomicLong; @@ -71,8 +70,6 @@ /** called by instrumented code on every method enter */ public void enterMethod(String fullyQualifiedName) { - Objects.requireNonNull(fullyQualifiedName); - long currentTime = System.nanoTime(); long threadId = Thread.currentThread().getId(); @@ -96,8 +93,6 @@ /** called by instrumented code on every method exit */ public void exitMethod(String fullyQualifiedName) { - Objects.requireNonNull(fullyQualifiedName); - long currentTime = System.nanoTime(); long threadId = Thread.currentThread().getId(); @@ -120,7 +115,6 @@ } private void addData(String dataName, long time) { - Objects.requireNonNull(dataName); AtomicLong value = profileData.get(dataName); if (value == null) { value = profileData.putIfAbsent(dataName, new AtomicLong(time));