Skip to content

Commit

Permalink
[issue projectlombok#2964] fixing the previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rzwitserloot authored and sadv1r committed Nov 23, 2021
1 parent 5440a28 commit 291a04e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
public class StandardProductDescriptor implements EclipseProductDescriptor {

private static final String USER_HOME = System.getProperty("user.home", ".");
private static final String[] BASE_WINDOWS_ROOTS = {"\\", "\\Program Files", "\\Program Files (x86)", "\\ProgramData\\Chocolatey\\lib"};
private static final String[] WINDOWS_ROOTS = windowsRoots();
private static final String[] MAC_ROOTS = {"/Applications", USER_HOME};
private static final String[] UNIX_ROOTS = {USER_HOME};
Expand Down Expand Up @@ -157,7 +158,6 @@ private static String concat(String base, String pathSeparator, String alternati
return base + pathSeparator + alternative.replaceAll("[\\/]", "\\" + pathSeparator);
}

private static final String[] BASE_WINDOWS_ROOTS = {"\\", "\\Program Files", "\\Program Files (x86)", "\\ProgramData\\Chocolatey\\lib"};
private static String[] windowsRoots() {
String localAppData = windowsLocalAppData();
String[] out = new String[BASE_WINDOWS_ROOTS.length + (localAppData == null ? 1 : 2)];
Expand Down

0 comments on commit 291a04e

Please sign in to comment.