Prune unneeded imports, nuke some unneeded casts, rerun code generators.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@687 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -181,10 +181,10 @@ public class TourneyObject extends DObject
|
||||
* change. Proxied copies of this object (on clients) will apply the
|
||||
* value change when they received the attribute changed notification.
|
||||
*/
|
||||
public void setParticipants (DSet<com.threerings.parlor.tourney.data.Participant> value)
|
||||
public void setParticipants (DSet<Participant> value)
|
||||
{
|
||||
requestAttributeChange(PARTICIPANTS, value, this.participants);
|
||||
@SuppressWarnings("unchecked") DSet<com.threerings.parlor.tourney.data.Participant> clone =
|
||||
@SuppressWarnings("unchecked") DSet<Participant> clone =
|
||||
(value == null) ? null : value.typedClone();
|
||||
this.participants = clone;
|
||||
}
|
||||
|
||||
@@ -56,22 +56,19 @@ public class TourneyDispatcher extends InvocationDispatcher<TourneyMarshaller>
|
||||
switch (methodId) {
|
||||
case TourneyMarshaller.CANCEL:
|
||||
((TourneyProvider)provider).cancel(
|
||||
source,
|
||||
(InvocationService.ConfirmListener)args[0]
|
||||
source, (InvocationService.ConfirmListener)args[0]
|
||||
);
|
||||
return;
|
||||
|
||||
case TourneyMarshaller.JOIN:
|
||||
((TourneyProvider)provider).join(
|
||||
source,
|
||||
(InvocationService.ConfirmListener)args[0]
|
||||
source, (InvocationService.ConfirmListener)args[0]
|
||||
);
|
||||
return;
|
||||
|
||||
case TourneyMarshaller.LEAVE:
|
||||
((TourneyProvider)provider).leave(
|
||||
source,
|
||||
(InvocationService.ConfirmListener)args[0]
|
||||
source, (InvocationService.ConfirmListener)args[0]
|
||||
);
|
||||
return;
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
package com.threerings.parlor.tourney.server;
|
||||
|
||||
import com.threerings.parlor.tourney.client.TourneyService;
|
||||
import com.threerings.presents.client.InvocationService;
|
||||
import com.threerings.presents.data.ClientObject;
|
||||
import com.threerings.presents.server.InvocationException;
|
||||
|
||||
@@ -57,8 +57,7 @@ public class TourniesDispatcher extends InvocationDispatcher<TourniesMarshaller>
|
||||
switch (methodId) {
|
||||
case TourniesMarshaller.CREATE_TOURNEY:
|
||||
((TourniesProvider)provider).createTourney(
|
||||
source,
|
||||
(TourneyConfig)args[0], (InvocationService.ResultListener)args[1]
|
||||
source, (TourneyConfig)args[0], (InvocationService.ResultListener)args[1]
|
||||
);
|
||||
return;
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
package com.threerings.parlor.tourney.server;
|
||||
|
||||
import com.threerings.parlor.tourney.client.TourniesService;
|
||||
import com.threerings.parlor.tourney.data.TourneyConfig;
|
||||
import com.threerings.presents.client.InvocationService;
|
||||
import com.threerings.presents.data.ClientObject;
|
||||
|
||||
Reference in New Issue
Block a user