Commit 7157b557 by Patryk Czarnik

drobna redukcja duplikacji kodu

parent f14126fa
......@@ -29,7 +29,7 @@ public class TimeResource {
@GET
@Path("/date/year")
public int odczytajRok() {
return LocalDate.now().getYear();
return odczytajDate().getYear();
}
// ta metoda obsługuje adres .../dt/time
......@@ -43,7 +43,7 @@ public class TimeResource {
@GET
@Path("/time/second")
public int odczytajSekunde() {
return LocalTime.now().getSecond();
return odczytajCzas().getSecond();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment