Skip to content
This repository

trivial typos in DeathRattleExceptionHandler #251

Merged
merged 2 commits into from almost 2 years ago

3 participants

Jeff Hodges Ted Nyman Coda Hale
Jeff Hodges

No description provided.

Ted Nyman
tnm commented

PLZ MERGE

Coda Hale codahale merged commit 97c2132 into from
Coda Hale codahale closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
6  metrics-core/src/main/java/com/yammer/metrics/util/DeathRattleExceptionHandler.java
@@ -9,7 +9,7 @@
9 9
  * increment a counter signalling a thread has died and print out the name and stack trace of the
10 10
  * thread.
11 11
  * <p/>
12  
- * This makes it easy to build alerts on unexpected Thread deaths and fine grained used quickens
  12
+ * This makes it easy to build alerts on unexpected Thread deaths and fine-grained use quickens
13 13
  * debugging in production.
14 14
  * <p/>
15 15
  * You can also set a DeathRattleExceptionHandler as the default exception handler on all threads,
@@ -18,7 +18,7 @@
18 18
  * Usage is straightforward:
19 19
  * <p/>
20 20
  * <pre><code>
21  
- * final Counter c = Metrics.newCounter(MyRunnable.class, "thread-deaths");
  21
+ * Counter c = Metrics.newCounter(MyRunnable.class, "thread-deaths");
22 22
  * Thread.UncaughtExceptionHandler exHandler = new DeathRattleExceptionHandler(c);
23 23
  * final Thread myThread = new Thread(myRunnable, "MyRunnable");
24 24
  * myThread.setUncaughtExceptionHandler(exHandler);
@@ -27,7 +27,7 @@
27 27
  * Setting the global default exception handler should be done first, like so:
28 28
  * <p/>
29 29
  * <pre><code>
30  
- * final Counter c = Metrics.newCounter(MyMainClass.class, "unhandled-thread-deaths");
  30
+ * Counter c = Metrics.newCounter(MyMainClass.class, "unhandled-thread-deaths");
31 31
  * Thread.UncaughtExceptionHandler ohNoIDidntKnowAboutThis = new DeathRattleExceptionHandler(c);
32 32
  * Thread.setDefaultUncaughtExceptionHandler(ohNoIDidntKnowAboutThis);
33 33
  * </code></pre>
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.