File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/org/codejive/jpm/json Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 77import java .io .Writer ;
88import java .nio .file .Files ;
99import java .nio .file .Path ;
10+ import java .nio .file .Paths ;
1011import java .util .Map ;
1112import java .util .TreeMap ;
1213
@@ -40,7 +41,7 @@ public String[] getDependencyGAVs() {
4041 * @throws IOException if an error occurred while reading or parsing the file
4142 */
4243 public static AppInfo read () throws IOException {
43- Path prjJson = Path . of (APP_INFO_FILE );
44+ Path prjJson = Paths . get (APP_INFO_FILE );
4445 AppInfo appInfo = new AppInfo ();
4546 if (Files .isRegularFile (prjJson )) {
4647 try (Reader in = Files .newBufferedReader (prjJson )) {
@@ -65,7 +66,7 @@ public static AppInfo read() throws IOException {
6566 * @throws IOException if an error occurred while writing the file
6667 */
6768 public static void write (AppInfo appInfo ) throws IOException {
68- Path prjJson = Path . of (APP_INFO_FILE );
69+ Path prjJson = Paths . get (APP_INFO_FILE );
6970 try (Writer out = Files .newBufferedWriter (prjJson )) {
7071 Gson parser = new GsonBuilder ().setPrettyPrinting ().create ();
7172 // WARNING awful code ahead
You can’t perform that action at this time.
0 commit comments