mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-27 09:56:41 +00:00
Fixed Java warnings.
This commit is contained in:
@ -24,6 +24,8 @@ package com.sk89q.worldedit;
|
||||
* @author sk89q
|
||||
*/
|
||||
public class DisallowedItemException extends WorldEditException {
|
||||
private static final long serialVersionUID = -8080026411461549979L;
|
||||
|
||||
private String type;
|
||||
|
||||
public DisallowedItemException(String type) {
|
||||
|
@ -104,7 +104,9 @@ public class DoubleArrayList<A,B> implements Iterable<Map.Entry<A,B>> {
|
||||
* @param <A>
|
||||
* @param <B>
|
||||
*/
|
||||
public class ForwardEntryIterator<T extends Map.Entry> implements Iterator<Map.Entry<A,B>> {
|
||||
public class ForwardEntryIterator<T extends Map.Entry<A,B>>
|
||||
implements Iterator<Map.Entry<A,B>> {
|
||||
|
||||
private Iterator<A> keyIterator;
|
||||
private Iterator<B> valueIterator;
|
||||
|
||||
@ -132,7 +134,9 @@ public class DoubleArrayList<A,B> implements Iterable<Map.Entry<A,B>> {
|
||||
* @param <A>
|
||||
* @param <B>
|
||||
*/
|
||||
public class ReverseEntryIterator<T extends Map.Entry> implements Iterator<Map.Entry<A,B>> {
|
||||
public class ReverseEntryIterator<T extends Map.Entry<A,B>>
|
||||
implements Iterator<Map.Entry<A,B>> {
|
||||
|
||||
private ListIterator<A> keyIterator;
|
||||
private ListIterator<B> valueIterator;
|
||||
|
||||
@ -160,7 +164,7 @@ public class DoubleArrayList<A,B> implements Iterable<Map.Entry<A,B>> {
|
||||
* @param <A>
|
||||
* @param <B>
|
||||
*/
|
||||
public class Entry<A,B> implements Map.Entry<A,B> {
|
||||
public class Entry<C,D> implements Map.Entry<A,B> {
|
||||
private A key;
|
||||
private B value;
|
||||
|
||||
|
@ -24,5 +24,6 @@ package com.sk89q.worldedit;
|
||||
* @author Albert
|
||||
*/
|
||||
public class EmptyClipboardException extends WorldEditException {
|
||||
private static final long serialVersionUID = -3197424556127109425L;
|
||||
|
||||
}
|
||||
|
@ -7,7 +7,6 @@ package com.sk89q.worldedit;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.HashMap;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
import java.io.*;
|
||||
|
||||
@ -109,7 +108,7 @@ public class GroupRestrictionsManager {
|
||||
int changeLimit = parts.length > 1 ? Integer.parseInt(parts[1]) : -1;
|
||||
changeLimits.put(groupID, changeLimit);
|
||||
} catch (NumberFormatException e) {
|
||||
logger.log(Level.ALL.WARNING, "Integer expected in"
|
||||
logger.warning("Integer expected in"
|
||||
+ "WorldEdit group permissions line: " + line);
|
||||
}
|
||||
}
|
||||
|
@ -22,8 +22,9 @@ package com.sk89q.worldedit;
|
||||
/**
|
||||
* Raised when a region is not fully defined.
|
||||
*
|
||||
* @author Albert
|
||||
* @author sk89q
|
||||
*/
|
||||
public class IncompleteRegionException extends WorldEditException {
|
||||
private static final long serialVersionUID = 458988897980179094L;
|
||||
|
||||
}
|
||||
|
@ -24,6 +24,8 @@ package com.sk89q.worldedit;
|
||||
* @author sk89q
|
||||
*/
|
||||
public class InsufficientArgumentsException extends WorldEditException {
|
||||
private static final long serialVersionUID = 995264804658899764L;
|
||||
|
||||
public InsufficientArgumentsException(String error) {
|
||||
super(error);
|
||||
}
|
||||
|
@ -24,6 +24,8 @@ package com.sk89q.worldedit;
|
||||
* @author sk89q
|
||||
*/
|
||||
public class InvalidItemException extends DisallowedItemException {
|
||||
private static final long serialVersionUID = -2739618871154124586L;
|
||||
|
||||
public InvalidItemException(String type, String message) {
|
||||
super(type, message);
|
||||
}
|
||||
|
@ -24,6 +24,8 @@ package com.sk89q.worldedit;
|
||||
* @author sk89q
|
||||
*/
|
||||
public class MaxChangedBlocksException extends WorldEditException {
|
||||
private static final long serialVersionUID = -2621044030640945259L;
|
||||
|
||||
int maxBlocks;
|
||||
|
||||
public MaxChangedBlocksException(int maxBlocks) {
|
||||
|
@ -25,4 +25,5 @@ package com.sk89q.worldedit;
|
||||
* @author sk89q
|
||||
*/
|
||||
public class MaxRadiusException extends WorldEditException {
|
||||
private static final long serialVersionUID = -8405382841529528119L;
|
||||
}
|
||||
|
@ -24,6 +24,8 @@ package com.sk89q.worldedit;
|
||||
* @author sk89q
|
||||
*/
|
||||
public class UnknownDirectionException extends WorldEditException {
|
||||
private static final long serialVersionUID = 5705931351293248358L;
|
||||
|
||||
private String dir;
|
||||
|
||||
public UnknownDirectionException(String dir) {
|
||||
|
@ -25,6 +25,8 @@ package com.sk89q.worldedit;
|
||||
* @author sk89q
|
||||
*/
|
||||
public class UnknownItemException extends WorldEditException {
|
||||
private static final long serialVersionUID = 2661079183700565880L;
|
||||
|
||||
private String type;
|
||||
|
||||
public UnknownItemException(String type) {
|
||||
|
@ -21,9 +21,11 @@ package com.sk89q.worldedit;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Albert
|
||||
* @author sk89q
|
||||
*/
|
||||
public abstract class WorldEditException extends Exception {
|
||||
private static final long serialVersionUID = 3201997990797993987L;
|
||||
|
||||
protected WorldEditException() {
|
||||
}
|
||||
|
||||
|
@ -22,8 +22,9 @@ package com.sk89q.worldedit;
|
||||
/**
|
||||
* Raised when WorldEdit is not installed.
|
||||
*
|
||||
* @author Albert
|
||||
* @author sk89q
|
||||
*/
|
||||
public class WorldEditNotInstalled extends WorldEditException {
|
||||
private static final long serialVersionUID = -4698408698930848121L;
|
||||
|
||||
}
|
||||
|
@ -19,12 +19,9 @@
|
||||
|
||||
package com.sk89q.worldedit.blocks;
|
||||
|
||||
import com.sk89q.worldedit.*;
|
||||
import com.sk89q.worldedit.data.*;
|
||||
import java.util.Map;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
import org.jnbt.*;
|
||||
|
||||
/**
|
||||
|
@ -236,7 +236,8 @@ public class Chunk {
|
||||
* @return child tag
|
||||
* @throws InvalidFormatException
|
||||
*/
|
||||
public static Tag getChildTag(Map<String,Tag> items, String key, Class expected)
|
||||
public static Tag getChildTag(Map<String,Tag> items, String key,
|
||||
Class<? extends Tag> expected)
|
||||
throws InvalidFormatException {
|
||||
if (!items.containsKey(key)) {
|
||||
throw new InvalidFormatException("Missing a \"" + key + "\" tag");
|
||||
|
@ -24,6 +24,8 @@ package com.sk89q.worldedit.data;
|
||||
* @author sk89q
|
||||
*/
|
||||
public class ChunkStoreException extends DataException {
|
||||
private static final long serialVersionUID = 1483900743779953289L;
|
||||
|
||||
public ChunkStoreException(String msg) {
|
||||
super(msg);
|
||||
}
|
||||
|
@ -25,6 +25,8 @@ package com.sk89q.worldedit.data;
|
||||
* @author sk89q
|
||||
*/
|
||||
public class DataException extends Exception {
|
||||
private static final long serialVersionUID = 5806521052111023788L;
|
||||
|
||||
public DataException(String msg) {
|
||||
super(msg);
|
||||
}
|
||||
|
@ -24,6 +24,8 @@ package com.sk89q.worldedit.data;
|
||||
* @author sk89q
|
||||
*/
|
||||
public class InvalidFormatException extends DataException {
|
||||
private static final long serialVersionUID = -3401820540902726145L;
|
||||
|
||||
public InvalidFormatException(String msg) {
|
||||
super(msg);
|
||||
}
|
||||
|
@ -26,6 +26,8 @@ import com.sk89q.worldedit.Vector2D;
|
||||
* @author sk89q
|
||||
*/
|
||||
public class MissingChunkException extends ChunkStoreException {
|
||||
private static final long serialVersionUID = 8013715483709973489L;
|
||||
|
||||
private Vector2D pos;
|
||||
|
||||
public MissingChunkException() {
|
||||
|
@ -22,7 +22,6 @@ package com.sk89q.worldedit.data;
|
||||
import de.schlichtherle.io.*;
|
||||
import de.schlichtherle.io.File;
|
||||
import de.schlichtherle.io.FileInputStream;
|
||||
import de.schlichtherle.io.FileOutputStream;
|
||||
import java.io.*;
|
||||
|
||||
/**
|
||||
@ -150,7 +149,7 @@ public class TrueZipAlphaChunkStore extends NestedFileChunkStore {
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
try {
|
||||
path.umount();
|
||||
File.umount(new File(path));
|
||||
} catch (ArchiveException e) {
|
||||
throw new IOException(e);
|
||||
}
|
||||
|
@ -32,6 +32,7 @@ public class ZippedAlphaChunkStore extends NestedFileChunkStore {
|
||||
/**
|
||||
* ZIP file.
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
private File zipFile;
|
||||
/**
|
||||
* Actual ZIP.
|
||||
@ -105,7 +106,9 @@ public class ZippedAlphaChunkStore extends NestedFileChunkStore {
|
||||
|
||||
// So not there either...
|
||||
if (testEntry == null) {
|
||||
for (Enumeration e = zip.entries(); e.hasMoreElements(); ) {
|
||||
for (Enumeration<? extends ZipEntry> e = zip.entries();
|
||||
e.hasMoreElements(); ) {
|
||||
|
||||
testEntry = (ZipEntry)e.nextElement();
|
||||
|
||||
// Whoo, found level.dat!
|
||||
|
@ -24,5 +24,6 @@ package com.sk89q.worldedit.snapshots;
|
||||
* @author sk89q
|
||||
*/
|
||||
public class InvalidSnapshotException extends Exception {
|
||||
private static final long serialVersionUID = 7307139106494852893L;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user