Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
39c678ba
提交
39c678ba
authored
7 年前
作者:
Evgenij Ryazanov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Replace String.valueOf(long) with Long.toString(long)
上级
9cd01f57
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
12 行增加
和
12 行删除
+12
-12
Sequence.java
h2/src/main/org/h2/schema/Sequence.java
+3
-3
MetaTable.java
h2/src/main/org/h2/table/MetaTable.java
+5
-5
ConvertTraceFile.java
h2/src/main/org/h2/tools/ConvertTraceFile.java
+1
-1
ValueLong.java
h2/src/main/org/h2/value/ValueLong.java
+1
-1
FtpControl.java
h2/src/tools/org/h2/dev/ftp/server/FtpControl.java
+1
-1
FtpServer.java
h2/src/tools/org/h2/dev/ftp/server/FtpServer.java
+1
-1
没有找到文件。
h2/src/main/org/h2/schema/Sequence.java
浏览文件 @
39c678ba
...
...
@@ -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
));
}
}
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/table/MetaTable.java
浏览文件 @
39c678ba
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/tools/ConvertTraceFile.java
浏览文件 @
39c678ba
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/value/ValueLong.java
浏览文件 @
39c678ba
...
...
@@ -170,7 +170,7 @@ public class ValueLong extends Value {
@Override
public
String
getString
()
{
return
String
.
valueOf
(
value
);
return
Long
.
toString
(
value
);
}
@Override
...
...
This diff is collapsed.
Click to expand it.
h2/src/tools/org/h2/dev/ftp/server/FtpControl.java
浏览文件 @
39c678ba
...
...
@@ -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"
);
}
...
...
This diff is collapsed.
Click to expand it.
h2/src/tools/org/h2/dev/ftp/server/FtpServer.java
浏览文件 @
39c678ba
...
...
@@ -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
(
' '
);
}
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论