Remove unneeded casts.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4923 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -159,8 +159,7 @@ public class DSetEditor extends JPanel
|
||||
{
|
||||
if (event.getName().equals(_setName)) {
|
||||
DSet.Entry entry = event.getEntry();
|
||||
@SuppressWarnings("unchecked") Comparable<Object> key =
|
||||
(Comparable<Object>)entry.getKey();
|
||||
@SuppressWarnings("unchecked") Comparable<Object> key = entry.getKey();
|
||||
int index = _keys.insertSorted(key);
|
||||
_table.insertDatum(entry, index);
|
||||
}
|
||||
@@ -210,8 +209,7 @@ public class DSetEditor extends JPanel
|
||||
DSet.Entry[] entries = new DSet.Entry[_set.size()];
|
||||
_set.toArray(entries);
|
||||
for (int ii = 0; ii < entries.length; ii++) {
|
||||
@SuppressWarnings("unchecked") Comparable<Object> key =
|
||||
(Comparable<Object>)entries[ii].getKey();
|
||||
@SuppressWarnings("unchecked") Comparable<Object> key = entries[ii].getKey();
|
||||
_keys.insertSorted(key);
|
||||
}
|
||||
_table.setData(entries); // this works because DSet itself is sorted
|
||||
|
||||
@@ -290,7 +290,7 @@ public class Client
|
||||
}
|
||||
int scount = _bstrap.services.size();
|
||||
for (int ii = 0; ii < scount; ii++) {
|
||||
InvocationService service = (InvocationService)_bstrap.services.get(ii);
|
||||
InvocationService service = _bstrap.services.get(ii);
|
||||
if (sclass.isInstance(service)) {
|
||||
return service;
|
||||
}
|
||||
|
||||
@@ -660,7 +660,7 @@ public class ConnectionManager extends LoopingThread
|
||||
|
||||
// create a new authing connection object to manage the authentication of this client
|
||||
// connection and register it with our selection set
|
||||
SelectableChannel selchan = (SelectableChannel)channel;
|
||||
SelectableChannel selchan = channel;
|
||||
selchan.configureBlocking(false);
|
||||
SelectionKey selkey = selchan.register(_selector, SelectionKey.OP_READ);
|
||||
_handlers.put(selkey, new AuthingConnection(this, selkey, channel));
|
||||
|
||||
Reference in New Issue
Block a user