From 4fbcfb4bf5b423198cccb2173ef923bb72c7251c Mon Sep 17 00:00:00 2001 From: Selim Eser <2211482@stud.hs-mannheim.de> Date: Sun, 9 Jun 2024 21:54:50 +0200 Subject: [PATCH] If user signs out the saved distances get deleted --- src/main/java/de/hs_mannheim/domain/System.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/hs_mannheim/domain/System.java b/src/main/java/de/hs_mannheim/domain/System.java index 2e56cfc..ca38761 100644 --- a/src/main/java/de/hs_mannheim/domain/System.java +++ b/src/main/java/de/hs_mannheim/domain/System.java @@ -55,7 +55,9 @@ public class System { return true; } - public void sign_out_user(){} + public void sign_out_user(){ + this.distances = new ArrayList<>(); + } public boolean change_user_details(String username, String password, String hometown, int zip, String car_name, double car_co2_km, double car_avg_kmh, double bike_avg_kmh){