v0.2.2: corrected casting errors in javac compiler
This commit is contained in:
@@ -341,7 +341,7 @@ public class Heap implements Bundlable {
|
|||||||
public void restoreFromBundle( Bundle bundle ) {
|
public void restoreFromBundle( Bundle bundle ) {
|
||||||
pos = bundle.getInt( POS );
|
pos = bundle.getInt( POS );
|
||||||
type = Type.valueOf( bundle.getString( TYPE ) );
|
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));
|
items.removeAll(Collections.singleton(null));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -690,7 +690,7 @@ public abstract class RegularLevel extends Level {
|
|||||||
public void restoreFromBundle( Bundle bundle ) {
|
public void restoreFromBundle( Bundle bundle ) {
|
||||||
super.restoreFromBundle( 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) {
|
for (Room r : rooms) {
|
||||||
if (r.type == Type.WEAK_FLOOR) {
|
if (r.type == Type.WEAK_FLOOR) {
|
||||||
weakFloorCreated = true;
|
weakFloorCreated = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user