This is an automated email from the ASF dual-hosted git repository.
bchapuis pushed a commit to branch sonar
in repository https://gitbox.apache.org/repos/asf/incubator-baremaps.git
The following commit(s) were added to refs/heads/sonar by this push:
new b9b68647 Add private constructor
b9b68647 is described below
commit b9b68647ff5e950d6534c3f5807c15580e9a6629
Author: Bertil Chapuis <[email protected]>
AuthorDate: Thu Jun 13 00:42:32 2024 +0200
Add private constructor
---
.../src/main/java/org/apache/baremaps/data/util/FileUtils.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/baremaps-data/src/main/java/org/apache/baremaps/data/util/FileUtils.java
b/baremaps-data/src/main/java/org/apache/baremaps/data/util/FileUtils.java
index d730816e..8fc7469f 100644
--- a/baremaps-data/src/main/java/org/apache/baremaps/data/util/FileUtils.java
+++ b/baremaps-data/src/main/java/org/apache/baremaps/data/util/FileUtils.java
@@ -28,6 +28,10 @@ import java.util.stream.Stream;
public class FileUtils {
+ private FileUtils() {
+ // Prevent instantiation
+ }
+
public static void deleteRecursively(Path path) throws IOException {
try (Stream<Path> files = Files.walk(path)) {
files.sorted(Comparator.reverseOrder()).map(Path::toFile).forEach(File::delete);