提交 aed847e4 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 62215328
...@@ -3,9 +3,8 @@ ...@@ -3,9 +3,8 @@
This configuration file was written by the eclipse-cs plugin configuration editor This configuration file was written by the eclipse-cs plugin configuration editor
--> -->
<!-- <!--
Checkstyle-Configuration: Checkstyle Checkstyle-Configuration: MyCheckstyle
Description: Description: none
Checkstyle Configuration
--> -->
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd"> <!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
<module name="Checker"> <module name="Checker">
...@@ -51,7 +50,6 @@ Checkstyle Configuration ...@@ -51,7 +50,6 @@ Checkstyle Configuration
<module name="EmptyStatement"/> <module name="EmptyStatement"/>
<module name="EqualsHashCode"/> <module name="EqualsHashCode"/>
<module name="IllegalInstantiation"/> <module name="IllegalInstantiation"/>
<module name="MissingSwitchDefault"/>
<module name="RedundantThrows"> <module name="RedundantThrows">
<property name="allowUnchecked" value="true"/> <property name="allowUnchecked" value="true"/>
<property name="allowSubclasses" value="true"/> <property name="allowSubclasses" value="true"/>
......
...@@ -272,7 +272,6 @@ public abstract class Value { ...@@ -272,7 +272,6 @@ public abstract class Value {
case JAVA_OBJECT: case JAVA_OBJECT:
case UUID: case UUID:
throw Message.getSQLException(ErrorCode.DATA_CONVERSION_ERROR_1, getString()); throw Message.getSQLException(ErrorCode.DATA_CONVERSION_ERROR_1, getString());
default:
} }
break; break;
} }
...@@ -292,7 +291,6 @@ public abstract class Value { ...@@ -292,7 +291,6 @@ public abstract class Value {
return ValueByte.get(convertToByte(convertToLong(getDouble()))); return ValueByte.get(convertToByte(convertToLong(getDouble())));
case FLOAT: case FLOAT:
return ValueByte.get(convertToByte(convertToLong(getFloat()))); return ValueByte.get(convertToByte(convertToLong(getFloat())));
default:
} }
break; break;
} }
...@@ -312,7 +310,6 @@ public abstract class Value { ...@@ -312,7 +310,6 @@ public abstract class Value {
return ValueShort.get(convertToShort(convertToLong(getDouble()))); return ValueShort.get(convertToShort(convertToLong(getDouble())));
case FLOAT: case FLOAT:
return ValueShort.get(convertToShort(convertToLong(getFloat()))); return ValueShort.get(convertToShort(convertToLong(getFloat())));
default:
} }
break; break;
} }
...@@ -332,7 +329,6 @@ public abstract class Value { ...@@ -332,7 +329,6 @@ public abstract class Value {
return ValueInt.get(convertToInt(convertToLong(getDouble()))); return ValueInt.get(convertToInt(convertToLong(getDouble())));
case FLOAT: case FLOAT:
return ValueInt.get(convertToInt(convertToLong(getFloat()))); return ValueInt.get(convertToInt(convertToLong(getFloat())));
default:
} }
break; break;
} }
...@@ -352,7 +348,6 @@ public abstract class Value { ...@@ -352,7 +348,6 @@ public abstract class Value {
return ValueLong.get(convertToLong(getDouble())); return ValueLong.get(convertToLong(getDouble()));
case FLOAT: case FLOAT:
return ValueLong.get(convertToLong(getFloat())); return ValueLong.get(convertToLong(getFloat()));
default:
} }
break; break;
} }
...@@ -383,7 +378,6 @@ public abstract class Value { ...@@ -383,7 +378,6 @@ public abstract class Value {
} }
return ValueDecimal.get(new BigDecimal(f)); return ValueDecimal.get(new BigDecimal(f));
} }
default:
} }
break; break;
} }
...@@ -403,7 +397,6 @@ public abstract class Value { ...@@ -403,7 +397,6 @@ public abstract class Value {
return ValueDouble.get(getBigDecimal().doubleValue()); return ValueDouble.get(getBigDecimal().doubleValue());
case FLOAT: case FLOAT:
return ValueDouble.get(getFloat()); return ValueDouble.get(getFloat());
default:
} }
break; break;
} }
...@@ -423,7 +416,6 @@ public abstract class Value { ...@@ -423,7 +416,6 @@ public abstract class Value {
return ValueFloat.get(getBigDecimal().floatValue()); return ValueFloat.get(getBigDecimal().floatValue());
case DOUBLE: case DOUBLE:
return ValueFloat.get((float) getDouble()); return ValueFloat.get((float) getDouble());
default:
} }
break; break;
} }
...@@ -433,7 +425,6 @@ public abstract class Value { ...@@ -433,7 +425,6 @@ public abstract class Value {
return ValueDate.get(new Date(getTimeNoCopy().getTime())); return ValueDate.get(new Date(getTimeNoCopy().getTime()));
case TIMESTAMP: case TIMESTAMP:
return ValueDate.get(new Date(getTimestampNoCopy().getTime())); return ValueDate.get(new Date(getTimestampNoCopy().getTime()));
default:
} }
break; break;
} }
...@@ -445,7 +436,6 @@ public abstract class Value { ...@@ -445,7 +436,6 @@ public abstract class Value {
case TIMESTAMP: case TIMESTAMP:
// need to normalize the year, month and day // need to normalize the year, month and day
return ValueTime.get(new Time(getTimestampNoCopy().getTime())); return ValueTime.get(new Time(getTimestampNoCopy().getTime()));
default:
} }
break; break;
} }
...@@ -455,7 +445,6 @@ public abstract class Value { ...@@ -455,7 +445,6 @@ public abstract class Value {
return ValueTimestamp.getNoCopy(new Timestamp(getTimeNoCopy().getTime())); return ValueTimestamp.getNoCopy(new Timestamp(getTimeNoCopy().getTime()));
case DATE: case DATE:
return ValueTimestamp.getNoCopy(new Timestamp(getDateNoCopy().getTime())); return ValueTimestamp.getNoCopy(new Timestamp(getDateNoCopy().getTime()));
default:
} }
break; break;
} }
...@@ -465,7 +454,6 @@ public abstract class Value { ...@@ -465,7 +454,6 @@ public abstract class Value {
case BLOB: case BLOB:
case UUID: case UUID:
return ValueBytes.getNoCopy(getBytesNoCopy()); return ValueBytes.getNoCopy(getBytesNoCopy());
default:
} }
break; break;
} }
...@@ -474,7 +462,6 @@ public abstract class Value { ...@@ -474,7 +462,6 @@ public abstract class Value {
case BYTES: case BYTES:
case BLOB: case BLOB:
return ValueBytes.getNoCopy(getBytesNoCopy()); return ValueBytes.getNoCopy(getBytesNoCopy());
default:
} }
break; break;
} }
...@@ -482,7 +469,6 @@ public abstract class Value { ...@@ -482,7 +469,6 @@ public abstract class Value {
switch(getType()) { switch(getType()) {
case BYTES: case BYTES:
return ValueLob.createSmallLob(Value.BLOB, getBytesNoCopy()); return ValueLob.createSmallLob(Value.BLOB, getBytesNoCopy());
default:
} }
break; break;
} }
...@@ -490,10 +476,8 @@ public abstract class Value { ...@@ -490,10 +476,8 @@ public abstract class Value {
switch(getType()) { switch(getType()) {
case BYTES: case BYTES:
return ValueUuid.get(getBytesNoCopy()); return ValueUuid.get(getBytesNoCopy());
default:
} }
} }
default:
} }
// conversion by parsing the string value // conversion by parsing the string value
String s = getString(); String s = getString();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论