Add in @Overrides across the board, clean up the comments around them some, and remove

unneeded imports.
I've got partially completed patches for narya & vilya, too, but nenya was the 
only one that wound up in a decent state after a friday evening puttering at it,
killing time waiting on other things to finish.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@572 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Dave Hoover
2008-07-14 18:19:23 +00:00
parent 1df0737bf7
commit 5f1eed7b94
137 changed files with 394 additions and 433 deletions
@@ -206,6 +206,7 @@ public class BundledComponentRepository
public Iterator enumerateComponentIds (final ComponentClass compClass)
{
return new Predicate<Integer>() {
@Override
public boolean isMatch (Integer input) {
CharacterComponent comp = (CharacterComponent)_components.get(input);
return comp.componentClass.equals(compClass);
@@ -365,7 +366,7 @@ public class BundledComponentRepository
return _bundle.getIdent() + root + imgpath + BundleUtil.IMAGE_EXTENSION;
}
@Override // from IMImageProvider
@Override
public Mirage getTileImage (String path, Rectangle bounds, Colorization[] zations)
{
// we don't need our images prepared for screen rendering
@@ -129,6 +129,7 @@ public class ComponentBundlerTask extends Task
/**
* Performs the actual work of the task.
*/
@Override
public void execute () throws BuildException
{
// make sure everything was set up properly
@@ -158,6 +159,7 @@ public class ComponentBundlerTask extends Task
// create an image provider for loading our component images
ImageProvider improv = new SimpleCachingImageProvider() {
@Override
protected BufferedImage loadImage (String path)
throws IOException {
return ImageIO.read(new File(path));
@@ -27,8 +27,6 @@ import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import com.threerings.util.FileUtil;
import com.threerings.media.tile.TileSet;
import com.threerings.media.tile.TrimmedTileSet;
@@ -38,7 +36,7 @@ import com.threerings.media.tile.TrimmedTileSet;
*/
public class DirectoryComponentBundlerTask extends ComponentBundlerTask
{
@Override // documentation inherited.
@Override
protected OutputStream createOutputStream (File target)
throws IOException
{
@@ -48,7 +46,7 @@ public class DirectoryComponentBundlerTask extends ComponentBundlerTask
@Override // documentation inherited
@Override
protected OutputStream nextEntry (OutputStream lastEntry, String path)
throws IOException
{
@@ -61,21 +59,21 @@ public class DirectoryComponentBundlerTask extends ComponentBundlerTask
return new FileOutputStream(file);
}
@Override // documentation inherited
@Override
protected boolean skipEntry (String path, long newest)
{
File file = new File(_target, path);
return (file.lastModified() > newest);
}
@Override // documentation inherited
@Override
protected TrimmedTileSet trim (TileSet aset, OutputStream fout)
throws IOException
{
return TrimmedTileSet.trimTileSet(aset, fout, "png");
}
@Override // documentation inherited
@Override
protected boolean skipIfTargetNewer ()
{
// We have to check modification later on a file-by-file basis, so cannot skip.
@@ -81,6 +81,7 @@ public class MetadataBundlerTask extends Task
/**
* Performs the actual work of the task.
*/
@Override
public void execute ()
throws BuildException
{