MCPcopy Create free account
hub / github.com/e2wugui/zeze / LoadConfig

Method LoadConfig

ZezeJava/ZezexJava/linkd/src/Zezex/App.java:36–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 }
35
36 private static LoadConfig LoadConfig() {
37 try {
38 byte[] bytes = Files.readAllBytes(Paths.get("linkd.json"));
39 return new JsonReader().buf(bytes).parse(LoadConfig.class);
40 // return new ObjectMapper().readValue(bytes, LoadConfig.class);
41 } catch (Exception e) {
42 // e.printStackTrace();
43 }
44 return new LoadConfig();
45 }
46
47 public LinkdApp LinkdApp;
48

Callers 1

StartMethod · 0.95

Calls 3

bufMethod · 0.80
getMethod · 0.65
parseMethod · 0.65

Tested by

no test coverage detected