Fix typos JEP-349-branch
authoregahlin
Fri, 27 Sep 2019 13:00:53 +0200
branchJEP-349-branch
changeset 58369 d55d1bd947c2
parent 58368 622f3661ed67
child 58370 9b4841a568cb
Fix typos
src/jdk.jfr/share/classes/jdk/jfr/consumer/RecordingStream.java
src/jdk.jfr/share/classes/jdk/jfr/internal/consumer/Dispatcher.java
--- a/src/jdk.jfr/share/classes/jdk/jfr/consumer/RecordingStream.java	Fri Sep 27 12:58:01 2019 +0200
+++ b/src/jdk.jfr/share/classes/jdk/jfr/consumer/RecordingStream.java	Fri Sep 27 13:00:53 2019 +0200
@@ -192,7 +192,7 @@
      * Disables event with the specified name.
      * <p>
      * If multiple events with same name (for example, the same class is loaded
-     * in different class loaders), then all events that match the name is
+     * in different class loaders), then all events that match the name are
      * disabled. To disable a specific class, use the {@link #disable(Class)}
      * method or a {@code String} representation of the event type ID.
      *
--- a/src/jdk.jfr/share/classes/jdk/jfr/internal/consumer/Dispatcher.java	Fri Sep 27 12:58:01 2019 +0200
+++ b/src/jdk.jfr/share/classes/jdk/jfr/internal/consumer/Dispatcher.java	Fri Sep 27 13:00:53 2019 +0200
@@ -177,8 +177,8 @@
         }
         for (int i = 0; i < consumers.length; i++) {
             @SuppressWarnings("unchecked")
-            Consumer<Throwable> conusmer = (Consumer<Throwable>) consumers[i];
-            conusmer.accept(e);
+            Consumer<Throwable> consumer = (Consumer<Throwable>) consumers[i];
+            consumer.accept(e);
         }
     }