Import cleanups

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5399 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Dave Hoover
2008-09-26 17:29:59 +00:00
parent c04adc6a6e
commit 8856120403
131 changed files with 261 additions and 242 deletions
@@ -23,10 +23,10 @@ package com.threerings.bureau.client;
import com.samskivert.util.OneLineLogFormatter;
import com.samskivert.util.Queue;
import com.samskivert.util.StringUtil;
import com.threerings.bureau.client.BureauDirector;
import com.threerings.bureau.data.AgentObject;
import com.samskivert.util.RunQueue;
import com.samskivert.util.StringUtil;
import com.threerings.bureau.data.AgentObject;
import static com.threerings.bureau.Log.log;
@@ -22,9 +22,11 @@
package com.threerings.crowd.client;
import java.io.IOException;
import javax.swing.JFrame;
import com.samskivert.swing.util.SwingUtil;
import com.threerings.util.Name;
import com.threerings.presents.client.Client;
@@ -26,11 +26,13 @@ import java.awt.EventQueue;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.IOException;
import javax.swing.JFrame;
import javax.swing.JPanel;
import com.samskivert.util.Config;
import com.samskivert.util.RunQueue;
import com.threerings.util.MessageManager;
import com.threerings.presents.client.Client;
@@ -4,6 +4,7 @@
package com.threerings.crowd.client;
import java.awt.BorderLayout;
import javax.swing.JPanel;
import com.threerings.crowd.data.PlaceObject;
@@ -28,9 +28,10 @@ import com.samskivert.util.RunQueue;
import com.threerings.util.MessageManager;
import com.threerings.util.Name;
import com.threerings.presents.client.*;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.ClientObserver;
import com.threerings.presents.dobj.DObjectManager;
import com.threerings.presents.net.*;
import com.threerings.presents.net.UsernamePasswordCreds;
import com.threerings.crowd.chat.client.ChatDirector;
import com.threerings.crowd.util.CrowdContext;
@@ -5,7 +5,6 @@ package com.threerings.crowd.data;
import com.threerings.crowd.client.JabberController;
import com.threerings.crowd.client.PlaceController;
import com.threerings.crowd.data.PlaceConfig;
/**
* Defines the necessary bits for our chat room.
@@ -7,6 +7,7 @@ import com.google.inject.Guice;
import com.google.inject.Injector;
import com.threerings.crowd.data.JabberConfig;
import static com.threerings.crowd.Log.log;
/**
@@ -21,8 +21,9 @@
package com.threerings.io;
import java.io.*;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.nio.channels.Pipe;
import java.nio.channels.ReadableByteChannel;
import java.nio.channels.WritableByteChannel;
@@ -29,8 +29,11 @@ import com.samskivert.util.RunQueue;
import com.threerings.util.Name;
import com.threerings.presents.data.TestObject;
import com.threerings.presents.dobj.*;
import com.threerings.presents.net.*;
import com.threerings.presents.dobj.DEvent;
import com.threerings.presents.dobj.EventListener;
import com.threerings.presents.dobj.ObjectAccessException;
import com.threerings.presents.dobj.Subscriber;
import com.threerings.presents.net.UsernamePasswordCreds;
import static com.threerings.presents.Log.log;
@@ -21,8 +21,6 @@
package com.threerings.presents.client;
import com.threerings.presents.client.InvocationDecoder;
import com.threerings.presents.client.TestReceiver;
/**
* Dispatches calls to a {@link TestReceiver} instance.
@@ -21,10 +21,11 @@
package com.threerings.presents.data;
import java.util.ArrayList;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.TestService;
import com.threerings.presents.dobj.InvocationResponseEvent;
import java.util.ArrayList;
/**
* Provides the implementation of the {@link TestService} interface
@@ -23,7 +23,8 @@ package com.threerings.presents.data;
import java.util.ArrayList;
import com.threerings.presents.dobj.*;
import com.threerings.presents.dobj.DObject;
import com.threerings.presents.dobj.OidList;
/**
* A test distributed object.
@@ -31,9 +31,12 @@ import atunit.Unit;
import com.google.inject.Inject;
import com.threerings.presents.data.TestObject;
import com.threerings.presents.dobj.*;
import com.threerings.presents.dobj.AttributeChangeListener;
import com.threerings.presents.dobj.AttributeChangedEvent;
import com.threerings.presents.dobj.ElementUpdateListener;
import com.threerings.presents.dobj.ElementUpdatedEvent;
import static org.junit.Assert.*;
import static org.junit.Assert.assertTrue;
/**
* A simple test case for the dobjmgr.
@@ -31,11 +31,15 @@ import atunit.Unit;
import com.google.inject.Inject;
import com.threerings.presents.data.TestObject;
import com.threerings.presents.dobj.*;
import static org.junit.Assert.*;
import com.threerings.presents.dobj.AttributeChangedEvent;
import com.threerings.presents.dobj.DEvent;
import com.threerings.presents.dobj.EventListener;
import com.threerings.presents.dobj.ObjectAddedEvent;
import com.threerings.presents.dobj.ObjectDestroyedEvent;
import static com.threerings.presents.Log.log;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
/**
* Tests that the dobjmgr will not allow a destroyed object to be added to
@@ -31,9 +31,13 @@ import atunit.Unit;
import com.google.inject.Inject;
import com.threerings.presents.data.TestObject;
import com.threerings.presents.dobj.*;
import com.threerings.presents.dobj.DEvent;
import com.threerings.presents.dobj.EventListener;
import com.threerings.presents.dobj.ObjectAddedEvent;
import com.threerings.presents.dobj.ObjectDestroyedEvent;
import com.threerings.presents.dobj.ObjectRemovedEvent;
import static org.junit.Assert.*;
import static org.junit.Assert.assertTrue;
/**
* Tests the oid list reference tracking code.
@@ -21,10 +21,11 @@
package com.threerings.presents.server;
import java.util.ArrayList;
import com.threerings.presents.client.TestService;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.TestMarshaller;
import java.util.ArrayList;
/**
* Dispatches requests to the {@link TestProvider}.
@@ -21,9 +21,10 @@
package com.threerings.presents.server;
import java.util.ArrayList;
import com.threerings.presents.client.TestService;
import com.threerings.presents.data.ClientObject;
import java.util.ArrayList;
/**
* Defines the server-side of the {@link TestService}.
@@ -1,5 +1,5 @@
//
// $Id: TestSender.java,v 1.2 2004/08/27 02:21:04 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -24,7 +24,6 @@ package com.threerings.presents.server;
import com.threerings.presents.client.TestDecoder;
import com.threerings.presents.client.TestReceiver;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.server.InvocationSender;
/**
* Used to issue notifications to a {@link TestReceiver} instance on a
@@ -25,6 +25,7 @@ import com.google.inject.Guice;
import com.google.inject.Injector;
import com.threerings.presents.data.TestObject;
import static com.threerings.presents.Log.log;
public class TestServer extends PresentsServer