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:
Dave Hoover
2008-07-18 19:02:08 +00:00
parent f30cb74ace
commit 624daadcd9
171 changed files with 371 additions and 459 deletions
+2 -6
View File
@@ -9,8 +9,6 @@ import java.util.zip.CRC32;
import com.samskivert.util.HashIntMap;
import com.samskivert.util.StringUtil;
import com.threerings.util.MessageBundle;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
@@ -170,9 +168,7 @@ public abstract class Stat
public abstract void unpersistFrom (ObjectInputStream in, AuxDataSource aux)
throws IOException, ClassNotFoundException;
/**
* Generates a string representation of this instance.
*/
@Override
public String toString ()
{
StringBuffer buf = new StringBuffer(StringUtil.toUSLowerCase(_type.name()));
@@ -193,7 +189,7 @@ public abstract class Stat
return _type.name();
}
// documentation inherited from Cloneable
@Override
public Object clone ()
{
try {
@@ -4,7 +4,6 @@
package com.threerings.stats.data;
import com.samskivert.util.ArrayUtil;
import com.samskivert.util.StringUtil;
/**
* Used to track a statistic comprised of a set of strings that map to numeric counts.
@@ -73,7 +72,7 @@ public abstract class StringMapStat extends Stat
return false;
}
@Override // documentation inherited
@Override
public String valueToString ()
{
StringBuffer buf = new StringBuffer("[");
@@ -120,6 +120,7 @@ public class StatRepository extends DepotRepository
public void invalidate (PersistenceContext ctx) {
ctx.cacheTraverse(
StatRecord.class.getName(), new CacheEvictionFilter<StatRecord>() {
@Override
public boolean testForEviction (Serializable key, StatRecord record) {
return record != null && record.playerId == playerId;
}
@@ -382,7 +383,7 @@ public class StatRepository extends DepotRepository
rmap.put(code, value);
}
@Override // from DepotRepository
@Override
protected void getManagedRecords (Set<Class<? extends PersistentRecord>> classes)
{
classes.add(StatRecord.class);