Skip to content
Snippets Groups Projects
Commit f89c30b7 authored by Karsch Lukas's avatar Karsch Lukas
Browse files

Merge remote-tracking branch 'origin/main' into main

parents cac0c4e4 a6d4cbd7
No related branches found
No related tags found
No related merge requests found
......@@ -219,7 +219,7 @@ public class FileManager {
log.info("Deleted {} recipes from the filesystem", deleted);
}
public static CategoryManager deserializeCategoryManager(String json) {
private static CategoryManager deserializeCategoryManager(String json) {
if (json.isBlank()) {
log.info("JSON file is blank, creating empty instance of Category Manager");
return new CategoryManager();
......@@ -322,7 +322,7 @@ public class FileManager {
);
}
public static Recipe JSONtoRecipe(String json) {
private static Recipe JSONtoRecipe(String json) {
Gson gson = new GsonBuilder().registerTypeAdapter(Recipe.class, new RecipeTypeAdapter()).create();
return gson.fromJson(json, Recipe.class);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment