Clean up some warnings I'm getting in super-pedantic mode.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5268 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -612,7 +612,7 @@ public class BureauRegistry
|
|||||||
int timeout = _bureau.launcherEntry.timeout;
|
int timeout = _bureau.launcherEntry.timeout;
|
||||||
if (timeout != 0) {
|
if (timeout != 0) {
|
||||||
new Interval(_runQueue) {
|
new Interval(_runQueue) {
|
||||||
public void expired () {
|
@Override public void expired () {
|
||||||
launchTimeoutExpired(_bureau);
|
launchTimeoutExpired(_bureau);
|
||||||
}
|
}
|
||||||
}.schedule(timeout);
|
}.schedule(timeout);
|
||||||
@@ -638,6 +638,7 @@ public class BureauRegistry
|
|||||||
this.timeout = timeout;
|
this.timeout = timeout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String toString ()
|
public String toString ()
|
||||||
{
|
{
|
||||||
return StringUtil.fieldsToString(this);
|
return StringUtil.fieldsToString(this);
|
||||||
|
|||||||
@@ -145,8 +145,7 @@ public class Transport
|
|||||||
if (_unordered == null) {
|
if (_unordered == null) {
|
||||||
int length = Type.values().length;
|
int length = Type.values().length;
|
||||||
_unordered = new Transport[length];
|
_unordered = new Transport[length];
|
||||||
@SuppressWarnings("unchecked") HashIntMap<Transport>[] ordered =
|
@SuppressWarnings("unchecked") HashIntMap<Transport>[] ordered = new HashIntMap[length];
|
||||||
(HashIntMap<Transport>[])new HashIntMap[length];
|
|
||||||
_ordered = ordered;
|
_ordered = ordered;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -23,10 +23,8 @@ package com.threerings.presents.tools;
|
|||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
import java.lang.reflect.Modifier;
|
import java.lang.reflect.Modifier;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import org.apache.tools.ant.DirectoryScanner;
|
import org.apache.tools.ant.DirectoryScanner;
|
||||||
@@ -35,7 +33,6 @@ import org.apache.tools.ant.types.FileSet;
|
|||||||
|
|
||||||
import com.threerings.io.SimpleStreamableObject;
|
import com.threerings.io.SimpleStreamableObject;
|
||||||
import com.threerings.io.Streamable;
|
import com.threerings.io.Streamable;
|
||||||
|
|
||||||
import com.threerings.presents.dobj.DObject;
|
import com.threerings.presents.dobj.DObject;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -80,8 +80,7 @@ public class TestClient
|
|||||||
// register ourselves as a test notification receiver
|
// register ourselves as a test notification receiver
|
||||||
client.getInvocationDirector().registerReceiver(new TestDecoder(this));
|
client.getInvocationDirector().registerReceiver(new TestDecoder(this));
|
||||||
|
|
||||||
TestService service = (TestService)
|
TestService service = client.requireService(TestService.class);
|
||||||
client.requireService(TestService.class);
|
|
||||||
|
|
||||||
// send a test request
|
// send a test request
|
||||||
ArrayList<Integer> three = new ArrayList<Integer>();
|
ArrayList<Integer> three = new ArrayList<Integer>();
|
||||||
|
|||||||
Reference in New Issue
Block a user