Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
d4d00600
提交
d4d00600
authored
14 年前
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Removed unused code and reduce visibility where possible.
上级
bdd93201
无相关合并请求
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
12 行增加
和
16 行删除
+12
-16
RuleElement.java
h2/src/main/org/h2/bnf/RuleElement.java
+1
-1
RuleList.java
h2/src/main/org/h2/bnf/RuleList.java
+1
-1
RuleOptional.java
h2/src/main/org/h2/bnf/RuleOptional.java
+1
-1
RuleRepeat.java
h2/src/main/org/h2/bnf/RuleRepeat.java
+1
-1
FullText.java
h2/src/main/org/h2/fulltext/FullText.java
+5
-5
JdbcConnection.java
h2/src/main/org/h2/jdbc/JdbcConnection.java
+2
-1
Trace.java
h2/src/main/org/h2/message/Trace.java
+0
-5
Profiler.java
h2/src/main/org/h2/util/Profiler.java
+1
-1
没有找到文件。
h2/src/main/org/h2/bnf/RuleElement.java
浏览文件 @
d4d00600
...
@@ -13,7 +13,7 @@ import org.h2.util.StringUtils;
...
@@ -13,7 +13,7 @@ import org.h2.util.StringUtils;
/**
/**
* A single terminal rule in a BNF object.
* A single terminal rule in a BNF object.
*/
*/
public
class
RuleElement
implements
Rule
{
class
RuleElement
implements
Rule
{
private
boolean
keyword
;
private
boolean
keyword
;
private
String
name
;
private
String
name
;
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/bnf/RuleList.java
浏览文件 @
d4d00600
...
@@ -13,7 +13,7 @@ import org.h2.util.New;
...
@@ -13,7 +13,7 @@ import org.h2.util.New;
/**
/**
* Represents a sequence of BNF rules, or a list of alternative rules.
* Represents a sequence of BNF rules, or a list of alternative rules.
*/
*/
public
class
RuleList
implements
Rule
{
class
RuleList
implements
Rule
{
private
boolean
or
;
private
boolean
or
;
private
ArrayList
<
Rule
>
list
;
private
ArrayList
<
Rule
>
list
;
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/bnf/RuleOptional.java
浏览文件 @
d4d00600
...
@@ -11,7 +11,7 @@ import java.util.HashMap;
...
@@ -11,7 +11,7 @@ import java.util.HashMap;
/**
/**
* Represents an optional BNF rule.
* Represents an optional BNF rule.
*/
*/
public
class
RuleOptional
implements
Rule
{
class
RuleOptional
implements
Rule
{
private
Rule
rule
;
private
Rule
rule
;
private
boolean
mapSet
;
private
boolean
mapSet
;
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/bnf/RuleRepeat.java
浏览文件 @
d4d00600
...
@@ -11,7 +11,7 @@ import java.util.HashMap;
...
@@ -11,7 +11,7 @@ import java.util.HashMap;
/**
/**
* Represents a loop in a BNF object.
* Represents a loop in a BNF object.
*/
*/
public
class
RuleRepeat
implements
Rule
{
class
RuleRepeat
implements
Rule
{
private
final
Rule
rule
;
private
final
Rule
rule
;
private
final
boolean
comma
;
private
final
boolean
comma
;
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/fulltext/FullText.java
浏览文件 @
d4d00600
...
@@ -50,27 +50,27 @@ public class FullText {
...
@@ -50,27 +50,27 @@ public class FullText {
/**
/**
* A column name of the result set returned by the searchData method.
* A column name of the result set returned by the searchData method.
*/
*/
pr
otected
static
final
String
FIELD_SCHEMA
=
"SCHEMA"
;
pr
ivate
static
final
String
FIELD_SCHEMA
=
"SCHEMA"
;
/**
/**
* A column name of the result set returned by the searchData method.
* A column name of the result set returned by the searchData method.
*/
*/
pr
otected
static
final
String
FIELD_TABLE
=
"TABLE"
;
pr
ivate
static
final
String
FIELD_TABLE
=
"TABLE"
;
/**
/**
* A column name of the result set returned by the searchData method.
* A column name of the result set returned by the searchData method.
*/
*/
pr
otected
static
final
String
FIELD_COLUMNS
=
"COLUMNS"
;
pr
ivate
static
final
String
FIELD_COLUMNS
=
"COLUMNS"
;
/**
/**
* A column name of the result set returned by the searchData method.
* A column name of the result set returned by the searchData method.
*/
*/
pr
otected
static
final
String
FIELD_KEYS
=
"KEYS"
;
pr
ivate
static
final
String
FIELD_KEYS
=
"KEYS"
;
/**
/**
* The hit score.
* The hit score.
*/
*/
pr
otected
static
final
String
FIELD_SCORE
=
"SCORE"
;
pr
ivate
static
final
String
FIELD_SCORE
=
"SCORE"
;
private
static
final
String
TRIGGER_PREFIX
=
"FT_"
;
private
static
final
String
TRIGGER_PREFIX
=
"FT_"
;
private
static
final
String
SCHEMA
=
"FT"
;
private
static
final
String
SCHEMA
=
"FT"
;
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/jdbc/JdbcConnection.java
浏览文件 @
d4d00600
...
@@ -1401,7 +1401,8 @@ public class JdbcConnection extends TraceObject implements Connection {
...
@@ -1401,7 +1401,8 @@ public class JdbcConnection extends TraceObject implements Connection {
return
;
return
;
}
}
if
(
session
!=
null
&&
openStackTrace
!=
null
)
{
if
(
session
!=
null
&&
openStackTrace
!=
null
)
{
trace
.
error
(
openStackTrace
,
"connection not closed"
);
Exception
ex
=
DbException
.
get
(
ErrorCode
.
TRACE_CONNECTION_NOT_CLOSED
);
trace
.
error
(
openStackTrace
,
ex
.
getMessage
());
try
{
try
{
close
();
close
();
}
catch
(
SQLException
e
)
{
}
catch
(
SQLException
e
)
{
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/message/Trace.java
浏览文件 @
d4d00600
...
@@ -64,11 +64,6 @@ public class Trace {
...
@@ -64,11 +64,6 @@ public class Trace {
*/
*/
public
static
final
String
SCHEMA
=
"schema"
;
public
static
final
String
SCHEMA
=
"schema"
;
/**
* The trace module name for sessions.
*/
public
static
final
String
SESSION
=
"session"
;
/**
/**
* The trace module name for sequences.
* The trace module name for sequences.
*/
*/
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/util/Profiler.java
浏览文件 @
d4d00600
...
@@ -168,7 +168,7 @@ public class Profiler implements Runnable {
...
@@ -168,7 +168,7 @@ public class Profiler implements Runnable {
}
}
}
}
private
boolean
startsWithAny
(
String
s
,
String
[]
prefixes
)
{
private
static
boolean
startsWithAny
(
String
s
,
String
[]
prefixes
)
{
for
(
String
p
:
prefixes
)
{
for
(
String
p
:
prefixes
)
{
if
(
p
.
length
()
>
0
&&
s
.
startsWith
(
p
))
{
if
(
p
.
length
()
>
0
&&
s
.
startsWith
(
p
))
{
return
true
;
return
true
;
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论