Since we have a runtime type token here,

it's best to avoid the @SuppressWarnings annotation.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6127 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2010-08-11 20:32:26 +00:00
parent 11c52c06eb
commit 891ca8db44
2 changed files with 2 additions and 4 deletions
@@ -348,8 +348,7 @@ public class Client
for (int ii = 0; ii < scount; ii++) {
InvocationService service = _bstrap.services.get(ii);
if (sclass.isInstance(service)) {
@SuppressWarnings("unchecked") T asSclass = (T)service;
return asSclass;
return sclass.cast(service);
}
}
return null;
@@ -716,8 +716,7 @@ public class DObject
{
for (Object attr : _locattrs) {
if (key.isInstance(attr)) {
@SuppressWarnings("unchecked") T casted = (T)attr;
return casted;
return key.cast(attr);
}
}
return null;