This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit b0492231 authored by Michael Breu's avatar Michael Breu :speech_balloon:
Browse files

Sonar

parent 411eb599
2 merge requests!188Merging Peer Reviewing et. al to Master,!164211 peer reviewing functionality
......@@ -173,9 +173,9 @@ public class ExerciseService {
jsonObject.put("type", "programming exercise");
}
FileWriter fileWriter = new FileWriter(jsonFile);
fileWriter.write(jsonObject.toString(JSONStyle.NO_COMPRESS));
fileWriter.close();
try (FileWriter fileWriter = new FileWriter(jsonFile)) {
fileWriter.write(jsonObject.toString(JSONStyle.NO_COMPRESS));
}
}
/**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment