提交 39c678ba authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Replace String.valueOf(long) with Long.toString(long)

上级 9cd01f57
......@@ -83,9 +83,9 @@ public class Sequence extends SchemaObjectBase {
this.belongsToTable = belongsToTable;
if (!isValid(this.value, this.minValue, this.maxValue, this.increment)) {
throw DbException.get(ErrorCode.SEQUENCE_ATTRIBUTES_INVALID, name,
String.valueOf(this.value), String.valueOf(this.minValue),
String.valueOf(this.maxValue),
String.valueOf(this.increment));
Long.toString(this.value), Long.toString(this.minValue),
Long.toString(this.maxValue),
Long.toString(this.increment));
}
}
......
......@@ -1173,19 +1173,19 @@ public class MetaTable extends Table {
// SEQUENCE_NAME
identifier(s.getName()),
// CURRENT_VALUE
String.valueOf(s.getCurrentValue()),
Long.toString(s.getCurrentValue()),
// INCREMENT
String.valueOf(s.getIncrement()),
Long.toString(s.getIncrement()),
// IS_GENERATED
s.getBelongsToTable() ? "TRUE" : "FALSE",
// REMARKS
replaceNullWithEmpty(s.getComment()),
// CACHE
String.valueOf(s.getCacheSize()),
Long.toString(s.getCacheSize()),
// MIN_VALUE
String.valueOf(s.getMinValue()),
Long.toString(s.getMinValue()),
// MAX_VALUE
String.valueOf(s.getMaxValue()),
Long.toString(s.getMaxValue()),
// IS_CYCLE
s.getCycle() ? "TRUE" : "FALSE",
// ID
......
......@@ -207,7 +207,7 @@ public class ConvertTraceFile extends Tool {
}
private static String padNumberLeft(long number, int digits) {
return StringUtils.pad(String.valueOf(number), digits, " ", false);
return StringUtils.pad(Long.toString(number), digits, " ", false);
}
private void addToStats(String sql, int resultCount, long time) {
......
......@@ -170,7 +170,7 @@ public class ValueLong extends Value {
@Override
public String getString() {
return String.valueOf(value);
return Long.toString(value);
}
@Override
......
......@@ -304,7 +304,7 @@ public class FtpControl extends Thread {
} else if ("SIZE".equals(command)) {
param = getFileName(param);
if (FileUtils.exists(param) && !FileUtils.isDirectory(param)) {
reply(250, String.valueOf(FileUtils.size(param)));
reply(250, Long.toString(FileUtils.size(param)));
} else {
reply(500, "Failed");
}
......
......@@ -230,7 +230,7 @@ public class FtpServer extends Tool implements Service {
buff.append('r');
buff.append(FileUtils.canWrite(fileName) ? 'w' : '-');
buff.append("------- 1 owner group ");
String size = String.valueOf(FileUtils.size(fileName));
String size = Long.toString(FileUtils.size(fileName));
for (int i = size.length(); i < 15; i++) {
buff.append(' ');
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论