From 23c7524e507a0379ffd0dbfebaf3d83ccda0653e Mon Sep 17 00:00:00 2001 From: emilfa Date: Tue, 3 Mar 2026 13:39:27 +0100 Subject: [PATCH] refactor: made Repository use generics instead of Object type --- src/main/java/edu/group5/app/model/Repository.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/edu/group5/app/model/Repository.java b/src/main/java/edu/group5/app/model/Repository.java index d0d2792..6850bfe 100644 --- a/src/main/java/edu/group5/app/model/Repository.java +++ b/src/main/java/edu/group5/app/model/Repository.java @@ -1,12 +1,14 @@ package edu.group5.app.model; +import java.util.Map; + /** * Represents a repository */ -public abstract class Repository { - protected final Object content; +public abstract class Repository { + protected final Map content; - public Repository(Object content) { + public Repository(Map content) { this.content = content; } @@ -14,7 +16,7 @@ public Repository(Object content) { * Gets the content of the repo * @return content of the repo */ - public Object getContent() { + public Map getContent() { return content; } }