v0.2.2: corrected casting errors in javac compiler
This commit is contained in:
parent
7648e8fc17
commit
161b444d67
|
@ -341,7 +341,7 @@ public class Heap implements Bundlable {
|
|||
public void restoreFromBundle( Bundle bundle ) {
|
||||
pos = bundle.getInt( POS );
|
||||
type = Type.valueOf( bundle.getString( TYPE ) );
|
||||
items = new LinkedList<Item>( (Collection<? extends Item>) bundle.getCollection( ITEMS ) );
|
||||
items = new LinkedList<Item>( (Collection<Item>) ((Collection<?>) bundle.getCollection( ITEMS )) );
|
||||
items.removeAll(Collections.singleton(null));
|
||||
}
|
||||
|
||||
|
|
|
@ -690,7 +690,7 @@ public abstract class RegularLevel extends Level {
|
|||
public void restoreFromBundle( Bundle bundle ) {
|
||||
super.restoreFromBundle( bundle );
|
||||
|
||||
rooms = new HashSet<Room>( (Collection<? extends Room>) bundle.getCollection( "rooms" ) );
|
||||
rooms = new HashSet<Room>( (Collection<Room>) ((Collection<?>) bundle.getCollection( "rooms" )) );
|
||||
for (Room r : rooms) {
|
||||
if (r.type == Type.WEAK_FLOOR) {
|
||||
weakFloorCreated = true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user