Skip to content

Commit ba5601f

Browse files
jisedlacthurka
authored andcommitted
Do not use RequestProcessor.getDefault() for repetitive tasks - just the selected occurrences, search for all TBD
1 parent 141c2be commit ba5601f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

visualvm/jmx/src/com/sun/tools/visualvm/jmx/impl/JmxModelImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ private JmxSupport getJmxSupport() {
384384
private class ApplicationRemovedListener implements DataRemovedListener<Application> {
385385

386386
public void dataRemoved(Application application) {
387-
RequestProcessor.getDefault().post(new Runnable() {
387+
new RequestProcessor().post(new Runnable() {
388388
public void run() {
389389
client.markAsDead();
390390
removedListener = null;

visualvm/jvmstat/src/com/sun/tools/visualvm/jvmstat/JvmstatModelImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public void disconnected(VmEvent event) {
218218
}
219219

220220
public void dataRemoved(Application dataSource) {
221-
RequestProcessor.getDefault().post(new Runnable() {
221+
new RequestProcessor().post(new Runnable() {
222222
public void run() {
223223
disableListeners();
224224
monitoredVm.detach();

visualvm/tools/src/com/sun/tools/visualvm/tools/jmx/CachedMBeanServerConnectionFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public void actionPerformed(ActionEvent e) {
215215
void intervalElapsed() {
216216
if (flushRunning) return;
217217
flushRunning = true;
218-
RequestProcessor.getDefault().post(new Runnable() {
218+
new RequestProcessor().post(new Runnable() {
219219
public void run() {
220220
flush();
221221
connectionPinger();

0 commit comments

Comments
 (0)