v0.7.5a: removed unnecessary explicit type arguments

This commit is contained in:
Evan Debenham
2019-10-04 15:50:26 -04:00
parent c0d8a456b3
commit 009752822d
35 changed files with 55 additions and 55 deletions

View File

@@ -30,7 +30,7 @@ import java.util.HashMap;
public class Script extends Program {
private static final HashMap<Class<? extends Script>,Script> all =
new HashMap<Class<? extends Script>, Script>();
new HashMap<>();
private static Script curScript = null;
private static Class<? extends Script> curScriptClass = null;

View File

@@ -42,7 +42,7 @@ public class Atlas {
this.tx = tx;
tx.atlas = this;
namedFrames = new HashMap<Object, RectF>();
namedFrames = new HashMap<>();
}
public void add( Object key, int left, int top, int right, int bottom ) {

View File

@@ -30,7 +30,7 @@ import java.util.ArrayList;
public class Camera extends Gizmo {
private static ArrayList<Camera> all = new ArrayList<Camera>();
private static ArrayList<Camera> all = new ArrayList<>();
protected static float invW2;
protected static float invH2;

View File

@@ -38,7 +38,7 @@ public class Group extends Gizmo {
public static boolean freezeEmitters = false;
public Group() {
members = new ArrayList<Gizmo>();
members = new ArrayList<>();
length = 0;
}

View File

@@ -36,7 +36,7 @@ public class TextureFilm {
private SmartTexture texture;
protected HashMap<Object,RectF> frames = new HashMap<Object, RectF>();
protected HashMap<Object,RectF> frames = new HashMap<>();
public TextureFilm( Object tx ) {

View File

@@ -31,7 +31,7 @@ public class BitmapCache {
private static final String DEFAULT = "__default";
private static HashMap<String,Layer> layers = new HashMap<String, BitmapCache.Layer>();
private static HashMap<String,Layer> layers = new HashMap<>();
public static Pixmap get( String assetName ) {
return get( DEFAULT, assetName );

View File

@@ -29,7 +29,7 @@ public class BitmapFilm {
public Pixmap bitmap;
protected HashMap<Object,Rect> frames = new HashMap<Object, Rect>();
protected HashMap<Object,Rect> frames = new HashMap<>();
public BitmapFilm( Pixmap bitmap ) {
this.bitmap = bitmap;

View File

@@ -46,7 +46,7 @@ public class Bundle {
private static final String CLASS_NAME = "__className";
private static HashMap<String,String> aliases = new HashMap<String, String>();
private static HashMap<String,String> aliases = new HashMap<>();
private JSONObject data;
@@ -226,7 +226,7 @@ public class Bundle {
public Collection<Bundlable> getCollection( String key ) {
ArrayList<Bundlable> list = new ArrayList<Bundlable>();
ArrayList<Bundlable> list = new ArrayList<>();
try {
JSONArray array = data.getJSONArray( key );

View File

@@ -40,7 +40,7 @@ public class Graph {
node.distance( Integer.MAX_VALUE );
}
LinkedList<Node> queue = new LinkedList<Node>();
LinkedList<Node> queue = new LinkedList<>();
focus.distance( 0 );
queue.add( focus );
@@ -63,7 +63,7 @@ public class Graph {
@SuppressWarnings("unchecked")
public static <T extends Node> List<T> buildPath( Collection<T> nodes, T from, T to ) {
List<T> path = new ArrayList<T>();
List<T> path = new ArrayList<>();
T room = from;
while (room != to) {