提交 382d5d2d authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Mark some methods as final

上级 f4f75172
......@@ -576,7 +576,7 @@ public abstract class Value {
* @param targetType the type of the returned value
* @return the converted value
*/
public Value convertTo(int targetType) {
public final Value convertTo(int targetType) {
// Use -1 to indicate "default behaviour" where value conversion should not
// depend on any datatype precision.
return convertTo(targetType, null);
......@@ -587,7 +587,7 @@ public abstract class Value {
* @param enumerators allowed values for the ENUM to which the value is converted
* @return value represented as ENUM
*/
public Value convertToEnum(String[] enumerators) {
public final Value convertToEnum(String[] enumerators) {
// Use -1 to indicate "default behaviour" where value conversion should not
// depend on any datatype precision.
return convertTo(ENUM, -1, null, null, enumerators);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论