Nixed unused imports, unneeded cast.
This commit is contained in:
@@ -36,7 +36,6 @@ import com.samskivert.depot.expression.SQLExpression;
|
|||||||
import com.samskivert.depot.impl.DepotMarshaller;
|
import com.samskivert.depot.impl.DepotMarshaller;
|
||||||
import com.samskivert.depot.impl.DepotUtil;
|
import com.samskivert.depot.impl.DepotUtil;
|
||||||
import com.samskivert.depot.impl.ExpressionVisitor;
|
import com.samskivert.depot.impl.ExpressionVisitor;
|
||||||
import com.samskivert.depot.impl.KeyCacheKey;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A special form of {@link WhereClause} that uniquely specifies a single database row and thus
|
* A special form of {@link WhereClause} that uniquely specifies a single database row and thus
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ import com.samskivert.depot.expression.LiteralExp;
|
|||||||
import com.samskivert.depot.expression.SQLExpression;
|
import com.samskivert.depot.expression.SQLExpression;
|
||||||
import com.samskivert.depot.impl.DepotUtil;
|
import com.samskivert.depot.impl.DepotUtil;
|
||||||
import com.samskivert.depot.impl.ExpressionVisitor;
|
import com.samskivert.depot.impl.ExpressionVisitor;
|
||||||
import com.samskivert.depot.impl.KeyCacheKey;
|
|
||||||
import com.samskivert.depot.operator.In;
|
import com.samskivert.depot.operator.In;
|
||||||
import com.samskivert.depot.operator.Or;
|
import com.samskivert.depot.operator.Or;
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ import java.io.File;
|
|||||||
import java.io.FileReader;
|
import java.io.FileReader;
|
||||||
import java.io.FileWriter;
|
import java.io.FileWriter;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.StringWriter;
|
|
||||||
|
|
||||||
import java.lang.annotation.Annotation;
|
import java.lang.annotation.Annotation;
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
|
|||||||
@@ -38,8 +38,7 @@ public class ByteEnumUtil
|
|||||||
public static <E extends Enum<E> & ByteEnum> E fromByte (Class<E> eclass, byte code)
|
public static <E extends Enum<E> & ByteEnum> E fromByte (Class<E> eclass, byte code)
|
||||||
{
|
{
|
||||||
for (E value : EnumSet.allOf(eclass)) {
|
for (E value : EnumSet.allOf(eclass)) {
|
||||||
ByteEnum bvalue = (ByteEnum)value;
|
if (value.toByte() == code) {
|
||||||
if (bvalue.toByte() == code) {
|
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user