Cleaned up documentation, added lacking Java annotations.

This commit is contained in:
sk89q
2011-02-18 15:49:50 -08:00
parent e5a25496b2
commit e94c1d4874
49 changed files with 269 additions and 140 deletions

View File

@@ -39,8 +39,7 @@ public class Snapshot {
/**
* Construct a snapshot restoration operation.
*
* @param editSession
* @param dir
* @param repo
* @param snapshot
*/
public Snapshot(SnapshotRepository repo, String snapshot) {
@@ -53,6 +52,7 @@ public class Snapshot {
*
* @return
* @throws IOException
* @throws DataException
*/
public ChunkStore getChunkStore() throws IOException, DataException {
if (file.getName().toLowerCase().endsWith(".zip")) {

View File

@@ -102,7 +102,7 @@ public class SnapshotRepository {
/**
* Check to see if a snapshot is valid.
*
* @param dir
* @param snapshot
* @return whether it is a valid snapshot
*/
public boolean isValidSnapshotName(String snapshot) {

View File

@@ -58,6 +58,7 @@ public class SnapshotRestore {
/**
* Construct the snapshot restore operation.
*
* @param chunkStore
* @param region
*/
public SnapshotRestore(ChunkStore chunkStore, Region region) {
@@ -131,7 +132,7 @@ public class SnapshotRestore {
* Restores to world.
*
* @param editSession
* @param region
* @throws MaxChangedBlocksException
*/
public void restore(EditSession editSession)
throws MaxChangedBlocksException {