Skip to content

Commit

Permalink
Merge branch 'eclipse-jdt:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
jukzi committed Aug 5, 2023
2 parents 46061c4 + ac29a3a commit cab5b3f
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 cab5b3f

Please sign in to comment.