We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e685f91 + e61cc61 commit c1bf8d8Copy full SHA for c1bf8d8
lib/src/main/java/com/retrozinndev/jsonutils/JSONBuilder.java
@@ -157,15 +157,15 @@ protected File makeEmptyJSON(File jsonFile) {
157
* @return
158
* A JSON representation of the wrote file containing the data.
159
*/
160
- public JSON makeJSON() {
+ public File makeJSON() {
161
if(!jsonFile.exists()) { makeEmptyJSON(jsonFile); }
162
boolean hasModifications = queuedJSONChanges.size() > 0;
163
if(hasModifications)
164
writeJSON(jsonFile);
165
else
166
Message.send(Type.Alert, "No modifications were found for the json object. Skipping write.");
167
168
- return null;
+ return jsonFile;
169
}
170
171
public JSONBuilder newVariable(String keyString, boolean value) {
0 commit comments