Skip to content

Commit 3720ab8

Browse files
author
Alexey Semenyuk
committed
8342609: jpackage test helper function incorrectly removes a directory instead of its contents only
Reviewed-by: almatvee
1 parent 1e14a04 commit 3720ab8

File tree

1 file changed

+2
-2
lines changed
  • test/jdk/tools/jpackage/helpers/jdk/jpackage/test

1 file changed

+2
-2
lines changed

test/jdk/tools/jpackage/helpers/jdk/jpackage/test/TKit.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -379,7 +379,7 @@ public void accept(Path root) {
379379
try {
380380
final List<Path> paths;
381381
if (contentsOnly) {
382-
try (var pathStream = Files.walk(root, 0)) {
382+
try (var pathStream = Files.list(root)) {
383383
paths = pathStream.collect(Collectors.toList());
384384
}
385385
} else {

0 commit comments

Comments
 (0)