Skip to content

Commit

Permalink
Fix UnsupportedOperationException in DetectVMInstallationsJob (eclips…
Browse files Browse the repository at this point in the history
  • Loading branch information
jjohnstn committed Aug 3, 2023
1 parent d3d56ec commit ac29a3a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
Expand Down Expand Up @@ -62,7 +63,7 @@ protected IStatus run(IProgressMonitor monitor) {
// for MacOS, system installed VMs need a special command to locate
if (Platform.OS_MACOSX.equals(Platform.getOS())) {
try {
systemVMs = Arrays.asList(MacInstalledJREs.getInstalledJREs(monitor));
systemVMs = new ArrayList<>(Arrays.asList(MacInstalledJREs.getInstalledJREs(monitor)));
systemVMs.removeIf(t -> knownVMs.contains(t.getInstallLocation()));
for (VMStandin systemVM : systemVMs) {
candidates.removeIf(t -> t.equals(systemVM.getInstallLocation()));
Expand Down

0 comments on commit ac29a3a

Please sign in to comment.