Repository: tomee Updated Branches: refs/heads/tomee-1.7.x 81f49ec65 -> 4736446a3
pmd Project: http://git-wip-us.apache.org/repos/asf/tomee/repo Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/4736446a Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/4736446a Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/4736446a Branch: refs/heads/tomee-1.7.x Commit: 4736446a3c6130ae1c20862d3de91ced107bb404 Parents: 81f49ec Author: Thiago Veronezi <thi...@veronezi.org> Authored: Sat Oct 28 06:01:04 2017 -0400 Committer: Thiago Veronezi <thi...@veronezi.org> Committed: Sat Oct 28 06:01:04 2017 -0400 ---------------------------------------------------------------------- .../apache/openejb/monitoring/StatsInterceptor.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tomee/blob/4736446a/container/openejb-core/src/main/java/org/apache/openejb/monitoring/StatsInterceptor.java ---------------------------------------------------------------------- diff --git a/container/openejb-core/src/main/java/org/apache/openejb/monitoring/StatsInterceptor.java b/container/openejb-core/src/main/java/org/apache/openejb/monitoring/StatsInterceptor.java index 7fe34ea..0fe90e7 100644 --- a/container/openejb-core/src/main/java/org/apache/openejb/monitoring/StatsInterceptor.java +++ b/container/openejb-core/src/main/java/org/apache/openejb/monitoring/StatsInterceptor.java @@ -108,11 +108,10 @@ public class StatsInterceptor { @PostConstruct public void PostConstruct(final InvocationContext invocationContext) throws Exception { - long start = System.nanoTime(); + final long start = System.nanoTime(); record(invocationContext, PostConstruct()); - long end = System.nanoTime(); - org.apache.openejb.util.Logger - .getInstance(LogCategory.MONITORING, "org.apache.openejb.monitoring") + final long end = System.nanoTime(); + Logger.getInstance(LogCategory.MONITORING, "org.apache.openejb.monitoring") .debug("instance.created", invocationContext.getTarget().getClass().getName(), end - start); } @@ -122,11 +121,10 @@ public class StatsInterceptor { @PreDestroy public void PreDestroy(final InvocationContext invocationContext) throws Exception { - long start = System.nanoTime(); + final long start = System.nanoTime(); record(invocationContext, PreDestroy()); - long end = System.nanoTime(); - org.apache.openejb.util.Logger - .getInstance(LogCategory.MONITORING, "org.apache.openejb.monitoring") + final long end = System.nanoTime(); + Logger.getInstance(LogCategory.MONITORING, "org.apache.openejb.monitoring") .debug("instance.discarded", invocationContext.getTarget().getClass().getName(), end - start); }