Skip to content

Commit

Permalink
Fix code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardcser committed Jun 16, 2023
1 parent de97221 commit bd5944d
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
import java.io.InputStream;
import java.nio.file.Path;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import javax.inject.Inject;
import javax.inject.Named;
import javax.inject.Singleton;
Expand Down Expand Up @@ -102,11 +102,7 @@ public Style getStyle() throws IOException {
var object = objectMapper.readValue(config, Style.class);
// Overwrite the style sources to use a custom vector tiles url
var styleSource = new StyleSource("vector", tilesUrl);
object.setSources(new HashMap<String, StyleSource>() {
{
put("baremaps", styleSource);
}
});
object.setSources(Map.of("baremaps", styleSource));
return object;
}

Expand Down

0 comments on commit bd5944d

Please sign in to comment.