Browse Source

refactoring: static to non-static method

remotes/origin/locations
Juliakn66 2 years ago
parent
commit
dc77373d07
  1. 2
      src/main/java/org/bitbiome/classes/JsonParser.java

2
src/main/java/org/bitbiome/classes/JsonParser.java

@ -22,7 +22,7 @@ public class JsonParser {
https://github.com/stleary/JSON-java
*/
public static JSONObject getJSONObject(String fileName) {
public JSONObject getJSONObject(String fileName) {
String resourceName = "./../../" + fileName;
InputStream is = JsonParser.class.getResourceAsStream(resourceName);
if (is == null) {

Loading…
Cancel
Save