We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e14a04 commit 3720ab8Copy full SHA for 3720ab8
test/jdk/tools/jpackage/helpers/jdk/jpackage/test/TKit.java
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright (c) 2019, 2023, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2019, 2024, Oracle and/or its affiliates. All rights reserved.
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
*
5
* This code is free software; you can redistribute it and/or modify it
@@ -379,7 +379,7 @@ public void accept(Path root) {
379
try {
380
final List<Path> paths;
381
if (contentsOnly) {
382
- try (var pathStream = Files.walk(root, 0)) {
+ try (var pathStream = Files.list(root)) {
383
paths = pathStream.collect(Collectors.toList());
384
}
385
} else {
0 commit comments