clone() modernization.
Apologies for the redundant cast warnings this is sure to introduce. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6015 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -125,12 +125,12 @@ public class OccupantInfo extends SimpleStreamableObject
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object clone ()
|
||||
public OccupantInfo clone ()
|
||||
{
|
||||
try {
|
||||
return super.clone();
|
||||
return (OccupantInfo) super.clone();
|
||||
} catch (CloneNotSupportedException cnse) {
|
||||
throw new RuntimeException(cnse);
|
||||
throw new AssertionError(cnse);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user