Nix unneeded imports, add @Overrides, remove content-free comments, and rerun code generators.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@670 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -24,14 +24,10 @@ package com.threerings.parlor;
|
||||
import com.threerings.util.Name;
|
||||
|
||||
import com.threerings.presents.client.*;
|
||||
import com.threerings.presents.net.*;
|
||||
|
||||
import com.threerings.crowd.client.*;
|
||||
import com.threerings.crowd.data.BodyObject;
|
||||
import com.threerings.crowd.util.CrowdContext;
|
||||
|
||||
import com.threerings.parlor.client.*;
|
||||
import com.threerings.parlor.game.client.*;
|
||||
import com.threerings.parlor.game.data.*;
|
||||
import com.threerings.parlor.util.ParlorContext;
|
||||
|
||||
@@ -51,6 +47,7 @@ public class TestClient extends com.threerings.crowd.client.TestClient
|
||||
_pardtr.setInvitationHandler(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clientDidLogon (Client client)
|
||||
{
|
||||
// we intentionally don't call super()
|
||||
@@ -98,6 +95,7 @@ public class TestClient extends com.threerings.crowd.client.TestClient
|
||||
", config=" + config + "].");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected CrowdContext createContext ()
|
||||
{
|
||||
return (_ctx = new ParlorContextImpl());
|
||||
|
||||
@@ -30,31 +30,37 @@ public class TestConfig extends GameConfig
|
||||
/** The foozle parameter. */
|
||||
public int foozle;
|
||||
|
||||
@Override
|
||||
public int getGameId ()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getGameIdent ()
|
||||
{
|
||||
return "test";
|
||||
}
|
||||
|
||||
@Override
|
||||
public GameConfigurator createConfigurator ()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PlaceController createController ()
|
||||
{
|
||||
return new TestController();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getManagerClassName ()
|
||||
{
|
||||
return "com.threerings.parlor.test.TestManager";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void toString (StringBuilder buf)
|
||||
{
|
||||
super.toString(buf);
|
||||
|
||||
@@ -27,6 +27,7 @@ import com.threerings.parlor.game.client.GameController;
|
||||
|
||||
public class TestController extends GameController
|
||||
{
|
||||
@Override
|
||||
public PlaceView createPlaceView (CrowdContext ctx)
|
||||
{
|
||||
// nothing doing
|
||||
|
||||
@@ -36,6 +36,7 @@ public class PercentilerTest extends TestCase
|
||||
super(PercentilerTest.class.getName());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void runTest ()
|
||||
{
|
||||
// create a percentiler
|
||||
|
||||
@@ -59,6 +59,7 @@ public class TestClient extends com.threerings.crowd.client.TestClient
|
||||
_locdir.addLocationObserver(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clientDidLogon (Client client)
|
||||
{
|
||||
// we specifically do not call super()
|
||||
@@ -85,6 +86,7 @@ public class TestClient extends com.threerings.crowd.client.TestClient
|
||||
log.warning("Location change failed [plid=" + placeId + ", reason=" + reason + "].");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected CrowdContext createContext ()
|
||||
{
|
||||
return (_ctx = new WhirledContextImpl());
|
||||
|
||||
@@ -27,11 +27,13 @@ import com.threerings.whirled.server.SceneManager;
|
||||
|
||||
public class TestConfig extends PlaceConfig
|
||||
{
|
||||
@Override
|
||||
public PlaceController createController ()
|
||||
{
|
||||
return new TestController();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getManagerClassName ()
|
||||
{
|
||||
return SceneManager.class.getName();
|
||||
|
||||
@@ -26,6 +26,7 @@ import com.threerings.crowd.util.CrowdContext;
|
||||
|
||||
public class TestController extends PlaceController
|
||||
{
|
||||
@Override
|
||||
protected PlaceView createPlaceView (CrowdContext ctx)
|
||||
{
|
||||
// nothing doing
|
||||
|
||||
@@ -39,11 +39,13 @@ public class SpotSceneParserTest extends TestCase
|
||||
super(SpotSceneParserTest.class.getName());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void runTest ()
|
||||
{
|
||||
try {
|
||||
SceneParser parser = new SceneParser("scene");
|
||||
parser.registerAuxRuleSet(new SpotSceneRuleSet() {
|
||||
@Override
|
||||
protected Location createLocation () {
|
||||
return new StageLocation(); // breaks package, but ok
|
||||
}
|
||||
|
||||
@@ -35,6 +35,7 @@ public class SceneParserTest extends TestCase
|
||||
super(SceneParserTest.class.getName());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void runTest ()
|
||||
{
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user