Skip to content

Commit

Permalink
Adding Multi-property-editor support in repo-editor
Browse files Browse the repository at this point in the history
- using file instead of path to work with java 8.
  • Loading branch information
cjayswal committed Nov 25, 2024
1 parent 96947f5 commit 52e0c61
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Path;
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedHashMap;
Expand Down Expand Up @@ -67,9 +66,9 @@ public static Collection<Map<String, Object>> getContent(String filePath) {
}

public static void saveContent(Collection<Map<String, Object>> data, String path) {
Path filePath = Path.of(path);
String name = filePath.getFileName().toString();
String parent = filePath.getParent().toString();
File file = new File(path);
String name = file.getName();
String parent = file.getParent();
saveContent(data, name, parent);
}

Expand Down

0 comments on commit 52e0c61

Please sign in to comment.