Skip to content

Commit

Permalink
8302856: Typo in FlightRecorderMXBeanImpl
Browse files Browse the repository at this point in the history
Reviewed-by: kevinw, egahlin
  • Loading branch information
minborg committed Feb 22, 2023
1 parent 3f3a1f5 commit 60a3581
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -96,7 +96,7 @@ public void recordingStateChanged(Recording recording) {
AccessController.doPrivileged(new PrivilegedAction<Void>() {
@Override
public Void run() {
sendNotification(createNotication(recording));
sendNotification(createNotification(recording));
return null;
}
}, context);
Expand Down Expand Up @@ -457,7 +457,7 @@ private void removeListeners(Predicate<MXBeanListener> p) {
listeners.removeAll(toBeRemoved);
}

private Notification createNotication(Recording recording) {
private Notification createNotification(Recording recording) {
try {
Long id = recording.getId();
Object oldValue = changes.get(recording.getId());
Expand All @@ -470,7 +470,7 @@ private Notification createNotication(Recording recording) {
return new AttributeChangeNotification(getObjectName(), sequenceNumber.incrementAndGet(), System.currentTimeMillis(), "Recording " + recording.getName() + " is "
+ recording.getState(), ATTRIBUTE_RECORDINGS, newValue.getClass().getName(), oldValue, newValue);
} catch (AttributeNotFoundException | MBeanException | ReflectionException e) {
throw new RuntimeException("Could not create notifcation for FlightRecorderMXBean. " + e.getMessage(), e);
throw new RuntimeException("Could not create notification for FlightRecorderMXBean. " + e.getMessage(), e);
}
}
}

1 comment on commit 60a3581

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.