If possible, use generic type inference for constructing objects.

This commit is contained in:
Andreas Schildbach 2017-01-28 12:16:49 +01:00
parent dabbfc878b
commit bf510b516d
33 changed files with 128 additions and 128 deletions

View file

@ -36,7 +36,7 @@ public class Standard {
public static final int COLOR_BACKGROUND_BUS = Style.parseColor("#993399");
public static final int COLOR_BACKGROUND_FERRY = Style.BLUE;
public static final Map<Product, Style> STYLES = new HashMap<Product, Style>();
public static final Map<Product, Style> STYLES = new HashMap<>();
static {
STYLES.put(Product.HIGH_SPEED_TRAIN,