diff --git a/src/main/java/com/example/cosmos_serversb/jsons/RequestsJson.java b/src/main/java/com/example/cosmos_serversb/jsons/RequestsJson.java index 35933ee..04ed055 100644 --- a/src/main/java/com/example/cosmos_serversb/jsons/RequestsJson.java +++ b/src/main/java/com/example/cosmos_serversb/jsons/RequestsJson.java @@ -7,7 +7,7 @@ public class RequestsJson { - public ArrayList requests; + public ArrayList requests = new ArrayList<>(); public RequestsJson(Set set){ changeRequests(set); @@ -21,10 +21,9 @@ this.requests = requests; } - public void changeRequests(Set set){ -// requests = new ArrayList(set); + public void changeRequests(Set set){ for( Request request : (Set) set ) { requests.add(new RequestJson(request)); - } - } + } + } }