fix: import warnings
This commit is contained in:
parent
94aa633f58
commit
53ffd0b1e4
@ -2,7 +2,6 @@ package eirb.pg203.weather.data.api;
|
|||||||
import eirb.pg203.weather.data.WeatherData;
|
import eirb.pg203.weather.data.WeatherData;
|
||||||
|
|
||||||
import java.time.Instant;
|
import java.time.Instant;
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
|
||||||
@ -60,7 +59,7 @@ public class WeatherDataCache {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private HashMap<String, CacheValue> cache = new HashMap<>();
|
private final HashMap<String, CacheValue> cache = new HashMap<>();
|
||||||
private static final long cacheTTL = 3600; // Cache data Time To Live in sec
|
private static final long cacheTTL = 3600; // Cache data Time To Live in sec
|
||||||
|
|
||||||
private String makeKey(String cityName, int day) {
|
private String makeKey(String cityName, int day) {
|
||||||
|
@ -11,10 +11,7 @@ import org.junit.jupiter.params.provider.Arguments;
|
|||||||
import org.junit.jupiter.params.provider.EnumSource;
|
import org.junit.jupiter.params.provider.EnumSource;
|
||||||
import org.junit.jupiter.params.provider.MethodSource;
|
import org.junit.jupiter.params.provider.MethodSource;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
|
||||||
|
|
||||||
import java.time.Instant;
|
import java.time.Instant;
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.stream.Stream;
|
import java.util.stream.Stream;
|
||||||
|
|
||||||
public class WeatherDataTest {
|
public class WeatherDataTest {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user