@@ -147,8 +147,8 @@ public void run() {
147
147
}
148
148
if (jvm == null || recordings .isEmpty ()) {
149
149
DialogDisplayer .getDefault ().notifyLater (new NotifyDescriptor .Message (NbBundle .getMessage (JFRRecordingProvider .class ,
150
- "MSG_Cannot_Take_JFR_dump" ) + DataSourceDescriptorFactory . // NOI18N
151
- getDescriptor (application ).getName (), NotifyDescriptor .ERROR_MESSAGE ));
150
+ "MSG_Cannot_Take_JFR_dump" , DataSourceDescriptorFactory . // NOI18N
151
+ getDescriptor (application ).getName ()) , NotifyDescriptor .ERROR_MESSAGE ));
152
152
return ;
153
153
}
154
154
@@ -199,8 +199,8 @@ public void run() {
199
199
List <Long > recordings = model .jfrCheck ();
200
200
if (recordings .isEmpty ()) {
201
201
DialogDisplayer .getDefault ().notifyLater (new NotifyDescriptor .Message (NbBundle .getMessage (JFRRecordingProvider .class ,
202
- "MSG_Cannot_Take_JFR_dump" ) + DataSourceDescriptorFactory . // NOI18N
203
- getDescriptor (application ).getName (), NotifyDescriptor .ERROR_MESSAGE ));
202
+ "MSG_Cannot_Take_JFR_dump" , DataSourceDescriptorFactory . // NOI18N
203
+ getDescriptor (application ).getName ()) , NotifyDescriptor .ERROR_MESSAGE ));
204
204
return ;
205
205
}
206
206
String file = dumpFile ;
@@ -358,7 +358,7 @@ private void processNewApplication(Application application) {
358
358
private void notifyJfrDumpFailed (final DataSource dataSource ) {
359
359
String displayName = DataSourceDescriptorFactory .getDescriptor (dataSource ).getName ();
360
360
DialogDisplayer .getDefault ().notifyLater (new NotifyDescriptor .Message (NbBundle .getMessage (JFRRecordingProvider .class ,
361
- "MSG_Cannot_Take_JFR_dump" ) + displayName , // NOI18N
361
+ "MSG_Cannot_Take_JFR_dump" , displayName ) , // NOI18N
362
362
NotifyDescriptor .ERROR_MESSAGE ));
363
363
}
364
364
0 commit comments