v0.7.5a: removed unnecessary explicit type arguments
This commit is contained in:
@@ -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 );
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 );
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user