Skip to content

Commit 7467de6

Browse files
committed
code cleanup
1 parent 960a70b commit 7467de6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

visualvm/jmx/src/org/graalvm/visualvm/jmx/impl/JmxApplicationProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ public boolean accept(File dir, String name) {
388388
Storage storage = new Storage(file, PROPERTIES_FILE);
389389
Set<Storage> storageSet = persistedApplications.get(storage.getCustomProperty(PROPERTY_HOSTNAME));
390390
if (storageSet == null) {
391-
storageSet = new HashSet<Storage>();
391+
storageSet = new HashSet<>();
392392
persistedApplications.put(storage.getCustomProperty(PROPERTY_HOSTNAME), storageSet);
393393
}
394394
storageSet.add(storage);

visualvm/jmx/src/org/graalvm/visualvm/jmx/impl/JmxConnectionConfigurator.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,7 @@ private void updateSelectedCustomizer() {
193193
}
194194

195195
private void updateOkButton() {
196-
okButton.setEnabled(displayedPanel != null &&
197-
displayedPanel.settingsValid() ? true : false);
196+
okButton.setEnabled(displayedPanel != null && displayedPanel.settingsValid());
198197
}
199198

200199
private void updateHint() {

0 commit comments

Comments
 (0)