diff --git a/src/main/java/com/example/cosmos_serversb/entities/Location.java b/src/main/java/com/example/cosmos_serversb/entities/Location.java index b4a0667..e5099fc 100644 --- a/src/main/java/com/example/cosmos_serversb/entities/Location.java +++ b/src/main/java/com/example/cosmos_serversb/entities/Location.java @@ -1,18 +1,13 @@ package com.example.cosmos_serversb.entities; public class Location { - public double latitude; - public double longitude; + private double latitude; + private double longitude; public Location(){ } - public Location(double latitude, double longitude){ - setLatitude(latitude); - setLongitude(longitude); - } - public void setLatitude(double latitude) { this.latitude = latitude; }