This is an automated email from the ASF dual-hosted git repository.

git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/tomee-site-pub.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 4be7c3b5c2 [site-publish] source tomee-site-generator 
https://github.com/apache/tomee-site-generator 
https://ci-builds.apache.org/job/Tomee/job/site-publish
4be7c3b5c2 is described below

commit 4be7c3b5c2550ab10010b1a08121d716b0a726e9
Author: jenkins <[email protected]>
AuthorDate: Fri Aug 12 00:45:18 2022 +0000

    [site-publish] source tomee-site-generator
    https://github.com/apache/tomee-site-generator
    https://ci-builds.apache.org/job/Tomee/job/site-publish
---
 .../javadoc/org/eclipse/microprofile/metrics/package-summary.html | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git 
a/microprofile-6.0/javadoc/org/eclipse/microprofile/metrics/package-summary.html
 
b/microprofile-6.0/javadoc/org/eclipse/microprofile/metrics/package-summary.html
index 0e27266327..f45a269c3b 100644
--- 
a/microprofile-6.0/javadoc/org/eclipse/microprofile/metrics/package-summary.html
+++ 
b/microprofile-6.0/javadoc/org/eclipse/microprofile/metrics/package-summary.html
@@ -298,11 +298,9 @@
  <pre>
  <code>
      Timer timer = metricRegistry.timer(metadata);
-     Timer.Context context = timer.time();
-
-     ... // code that will be timed
-
-     context.close();
+     try (Timer.Context context = timer.time()) {
+         ... // code that will be timed
+     }
  </code>
  </pre></div>
 </div>

Reply via email to