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 7
7
import java .io .Writer ;
8
8
import java .nio .file .Files ;
9
9
import java .nio .file .Path ;
10
+ import java .nio .file .Paths ;
10
11
import java .util .Map ;
11
12
import java .util .TreeMap ;
12
13
@@ -40,7 +41,7 @@ public String[] getDependencyGAVs() {
40
41
* @throws IOException if an error occurred while reading or parsing the file
41
42
*/
42
43
public static AppInfo read () throws IOException {
43
- Path prjJson = Path . of (APP_INFO_FILE );
44
+ Path prjJson = Paths . get (APP_INFO_FILE );
44
45
AppInfo appInfo = new AppInfo ();
45
46
if (Files .isRegularFile (prjJson )) {
46
47
try (Reader in = Files .newBufferedReader (prjJson )) {
@@ -65,7 +66,7 @@ public static AppInfo read() throws IOException {
65
66
* @throws IOException if an error occurred while writing the file
66
67
*/
67
68
public static void write (AppInfo appInfo ) throws IOException {
68
- Path prjJson = Path . of (APP_INFO_FILE );
69
+ Path prjJson = Paths . get (APP_INFO_FILE );
69
70
try (Writer out = Files .newBufferedWriter (prjJson )) {
70
71
Gson parser = new GsonBuilder ().setPrettyPrinting ().create ();
71
72
// WARNING awful code ahead
You can’t perform that action at this time.
0 commit comments