Skip to content

Commit ada73d0

Browse files
committed
#409: Fixed inconsistent path separator in get/setPrivateLibraryPaths.
setPrivateLibraryPaths method used "\n" for joining folder names, while the getter uses File.pathSeparator for splitting. Harmonised to the latter.
1 parent 6ef393e commit ada73d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

it.baeyens.arduino.common/src/it/baeyens/arduino/common/InstancePreferences.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ public static String[] getPrivateLibraryPaths() {
330330
}
331331

332332
public static void setPrivateLibraryPaths(String[] folderName) {
333-
setGlobalValue(KEY_PRIVATE_LIBRARY_PATHS, String.join("\n", folderName)); //$NON-NLS-1$
333+
setGlobalValue(KEY_PRIVATE_LIBRARY_PATHS, String.join(File.pathSeparator, folderName)); //$NON-NLS-1$
334334
}
335335

336336
public static String[] getPrivateHardwarePaths() {

0 commit comments

Comments
 (0)