google-collect upgrade
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5745 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -463,7 +463,7 @@ public class Streamer
|
|||||||
// reflect on all the object's fields and remove all marked with NotStreamable
|
// reflect on all the object's fields and remove all marked with NotStreamable
|
||||||
List<Field> fields = Lists.newArrayList();
|
List<Field> fields = Lists.newArrayList();
|
||||||
ClassUtil.getFields(target, fields);
|
ClassUtil.getFields(target, fields);
|
||||||
_fields = Iterables.newArray(Iterables.filter(fields, _isStreamableFieldPred), Field.class);
|
_fields = Iterables.toArray(Iterables.filter(fields, _isStreamableFieldPred), Field.class);
|
||||||
int fcount = _fields.length;
|
int fcount = _fields.length;
|
||||||
|
|
||||||
// obtain field marshallers for all of our fields
|
// obtain field marshallers for all of our fields
|
||||||
|
|||||||
@@ -251,7 +251,7 @@ public class PresentsSession
|
|||||||
*/
|
*/
|
||||||
protected void finishResolved (Name username, ClientObject clobj) {
|
protected void finishResolved (Name username, ClientObject clobj) {
|
||||||
// let the client know that the rug has been yanked out from under their ass
|
// let the client know that the rug has been yanked out from under their ass
|
||||||
Object[] args = new Object[] { Integer.valueOf(clobj.getOid()) };
|
Object[] args = new Object[] { clobj.getOid() };
|
||||||
_clobj.postMessage(ClientObject.CLOBJ_CHANGED, args);
|
_clobj.postMessage(ClientObject.CLOBJ_CHANGED, args);
|
||||||
|
|
||||||
// release our old client object; this will destroy it
|
// release our old client object; this will destroy it
|
||||||
|
|||||||
@@ -21,8 +21,8 @@
|
|||||||
|
|
||||||
package com.threerings.presents.server;
|
package com.threerings.presents.server;
|
||||||
|
|
||||||
|
import com.google.common.collect.ArrayListMultimap;
|
||||||
import com.google.common.collect.Multimap;
|
import com.google.common.collect.Multimap;
|
||||||
import com.google.common.collect.Multimaps;
|
|
||||||
import com.google.inject.Singleton;
|
import com.google.inject.Singleton;
|
||||||
|
|
||||||
import com.samskivert.util.Interval;
|
import com.samskivert.util.Interval;
|
||||||
@@ -185,7 +185,7 @@ public class ReportManager
|
|||||||
protected long _lastReportStamp = _serverStartTime;
|
protected long _lastReportStamp = _serverStartTime;
|
||||||
|
|
||||||
/** Used to generate "state of server" reports. */
|
/** Used to generate "state of server" reports. */
|
||||||
protected Multimap<String, Reporter> _reporters = Multimaps.newArrayListMultimap();
|
protected Multimap<String, Reporter> _reporters = ArrayListMultimap.create();
|
||||||
|
|
||||||
/** The frequency with which we generate "state of server" reports. */
|
/** The frequency with which we generate "state of server" reports. */
|
||||||
protected static final long REPORT_INTERVAL = 15 * 60 * 1000L;
|
protected static final long REPORT_INTERVAL = 15 * 60 * 1000L;
|
||||||
|
|||||||
Reference in New Issue
Block a user