File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 30
30
import java .io .Writer ;
31
31
import java .nio .file .DirectoryStream ;
32
32
import java .nio .file .Files ;
33
+ import java .nio .file .FileSystems ;
33
34
import java .nio .file .InvalidPathException ;
34
35
import java .nio .file .Path ;
35
36
import java .util .*;
@@ -243,14 +244,14 @@ private void copyLegalFiles(boolean includeJQuery) throws DocletException {
243
244
switch (legalNotices ) {
244
245
case "" :
245
246
case "default" :
246
- Path javaHome = Path . of (System .getProperty ("java.home" ));
247
+ Path javaHome = FileSystems . getDefault (). getPath (System .getProperty ("java.home" ));
247
248
legalNoticesDir = javaHome .resolve ("legal" ).resolve (getClass ().getModule ().getName ());
248
249
break ;
249
250
case "none" :
250
251
return ;
251
252
default :
252
253
try {
253
- legalNoticesDir = Path . of (legalNotices );
254
+ legalNoticesDir = FileSystems . getDefault (). getPath (legalNotices );
254
255
} catch (InvalidPathException e ) {
255
256
messages .error ("doclet.Error_invalid_path_for_legal_notices" ,
256
257
legalNotices , e .getMessage ());
You can’t perform that action at this time.
0 commit comments