Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8302856: Typo in FlightRecorderMXBeanImpl #12655

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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);
}
}
}