Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
231a81de
提交
231a81de
authored
10月 30, 2012
作者:
noelgrandin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
these final fields can be made static because they reference read-only data
上级
c324777c
隐藏空白字符变更
内嵌
并排
正在显示
16 个修改的文件
包含
25 行增加
和
25 行删除
+25
-25
Shell.java
h2/src/main/org/h2/tools/Shell.java
+1
-1
BenchB.java
h2/src/test/org/h2/test/bench/BenchB.java
+5
-5
BenchC.java
h2/src/test/org/h2/test/bench/BenchC.java
+1
-1
Database.java
h2/src/test/org/h2/test/bench/Database.java
+1
-1
TestPowerOff.java
h2/src/test/org/h2/test/db/TestPowerOff.java
+1
-1
TestBatchUpdates.java
h2/src/test/org/h2/test/jdbc/TestBatchUpdates.java
+2
-2
TestMetaData.java
h2/src/test/org/h2/test/jdbc/TestMetaData.java
+1
-1
TestKill.java
h2/src/test/org/h2/test/synth/TestKill.java
+1
-1
TestPowerOffFs2.java
h2/src/test/org/h2/test/synth/TestPowerOffFs2.java
+2
-2
TestMultiNews.java
h2/src/test/org/h2/test/synth/thread/TestMultiNews.java
+1
-1
CheckTextFiles.java
h2/src/tools/org/h2/build/code/CheckTextFiles.java
+3
-3
GenerateDoc.java
h2/src/tools/org/h2/build/doc/GenerateDoc.java
+1
-1
MergeDocs.java
h2/src/tools/org/h2/build/doc/MergeDocs.java
+1
-1
WebSite.java
h2/src/tools/org/h2/build/doc/WebSite.java
+2
-2
FtpServer.java
h2/src/tools/org/h2/dev/ftp/server/FtpServer.java
+1
-1
TableInspector.java
h2/src/tools/org/h2/jaqu/TableInspector.java
+1
-1
没有找到文件。
h2/src/main/org/h2/tools/Shell.java
浏览文件 @
231a81de
...
@@ -47,7 +47,7 @@ public class Shell extends Tool implements Runnable {
...
@@ -47,7 +47,7 @@ public class Shell extends Tool implements Runnable {
private
boolean
listMode
;
private
boolean
listMode
;
private
int
maxColumnSize
=
100
;
private
int
maxColumnSize
=
100
;
// Windows: '\u00b3';
// Windows: '\u00b3';
private
final
char
boxVertical
=
'|'
;
private
static
final
char
boxVertical
=
'|'
;
private
final
ArrayList
<
String
>
history
=
New
.
arrayList
();
private
final
ArrayList
<
String
>
history
=
New
.
arrayList
();
private
boolean
stopHide
;
private
boolean
stopHide
;
private
String
serverPropertiesDir
=
Constants
.
SERVER_PROPERTIES_DIR
;
private
String
serverPropertiesDir
=
Constants
.
SERVER_PROPERTIES_DIR
;
...
...
h2/src/test/org/h2/test/bench/BenchB.java
浏览文件 @
231a81de
...
@@ -23,11 +23,11 @@ public class BenchB implements Bench, Runnable {
...
@@ -23,11 +23,11 @@ public class BenchB implements Bench, Runnable {
// master data
// master data
private
Database
database
;
private
Database
database
;
private
final
int
scale
=
1
;
private
static
final
int
scale
=
1
;
private
final
int
branches
=
1
;
private
static
final
int
branches
=
1
;
private
final
int
tellers
=
10
;
private
static
final
int
tellers
=
10
;
private
final
int
accounts
=
100000
;
private
static
final
int
accounts
=
100000
;
private
final
int
clients
=
10
;
private
static
final
int
clients
=
10
;
private
int
transactionPerClient
;
private
int
transactionPerClient
;
// client data
// client data
...
...
h2/src/test/org/h2/test/bench/BenchC.java
浏览文件 @
231a81de
...
@@ -176,7 +176,7 @@ public class BenchC implements Bench {
...
@@ -176,7 +176,7 @@ public class BenchC implements Bench {
private
BenchCRandom
random
;
private
BenchCRandom
random
;
private
String
action
;
private
String
action
;
private
final
int
commitEvery
=
1000
;
private
static
final
int
commitEvery
=
1000
;
public
void
init
(
Database
db
,
int
size
)
throws
SQLException
{
public
void
init
(
Database
db
,
int
size
)
throws
SQLException
{
...
...
h2/src/test/org/h2/test/bench/Database.java
浏览文件 @
231a81de
...
@@ -38,7 +38,7 @@ class Database {
...
@@ -38,7 +38,7 @@ class Database {
private
long
startTime
;
private
long
startTime
;
private
Connection
conn
;
private
Connection
conn
;
private
Statement
stat
;
private
Statement
stat
;
private
final
boolean
trace
=
true
;
private
static
final
boolean
trace
=
true
;
private
long
lastTrace
;
private
long
lastTrace
;
private
final
Random
random
=
new
Random
(
1
);
private
final
Random
random
=
new
Random
(
1
);
private
final
ArrayList
<
Object
[]>
results
=
new
ArrayList
<
Object
[]>();
private
final
ArrayList
<
Object
[]>
results
=
new
ArrayList
<
Object
[]>();
...
...
h2/src/test/org/h2/test/db/TestPowerOff.java
浏览文件 @
231a81de
...
@@ -24,7 +24,7 @@ import org.h2.util.JdbcUtils;
...
@@ -24,7 +24,7 @@ import org.h2.util.JdbcUtils;
*/
*/
public
class
TestPowerOff
extends
TestBase
{
public
class
TestPowerOff
extends
TestBase
{
private
final
String
dbName
=
"powerOff"
;
private
static
final
String
dbName
=
"powerOff"
;
private
String
dir
,
url
;
private
String
dir
,
url
;
private
int
maxPowerOffCount
;
private
int
maxPowerOffCount
;
...
...
h2/src/test/org/h2/test/jdbc/TestBatchUpdates.java
浏览文件 @
231a81de
...
@@ -37,8 +37,8 @@ public class TestBatchUpdates extends TestBase {
...
@@ -37,8 +37,8 @@ public class TestBatchUpdates extends TestBase {
private
static
final
String
COFFEE_UPDATE_SET
=
"UPDATE TEST SET KEY_ID=?, C_NAME=? WHERE C_NAME=?"
;
private
static
final
String
COFFEE_UPDATE_SET
=
"UPDATE TEST SET KEY_ID=?, C_NAME=? WHERE C_NAME=?"
;
private
static
final
String
COFFEE_SELECT_CONTINUED
=
"SELECT COUNT(*) FROM TEST WHERE C_NAME='Continue-1'"
;
private
static
final
String
COFFEE_SELECT_CONTINUED
=
"SELECT COUNT(*) FROM TEST WHERE C_NAME='Continue-1'"
;
private
final
int
coffeeSize
=
10
;
private
static
final
int
coffeeSize
=
10
;
private
final
int
coffeeType
=
11
;
private
static
final
int
coffeeType
=
11
;
private
Connection
conn
;
private
Connection
conn
;
private
Statement
stat
;
private
Statement
stat
;
private
PreparedStatement
prep
;
private
PreparedStatement
prep
;
...
...
h2/src/test/org/h2/test/jdbc/TestMetaData.java
浏览文件 @
231a81de
...
@@ -26,7 +26,7 @@ public class TestMetaData extends TestBase {
...
@@ -26,7 +26,7 @@ public class TestMetaData extends TestBase {
private
Connection
conn
;
private
Connection
conn
;
private
DatabaseMetaData
meta
;
private
DatabaseMetaData
meta
;
private
Statement
stat
;
private
Statement
stat
;
private
final
String
catalog
=
"METADATA"
;
private
static
final
String
catalog
=
"METADATA"
;
/**
/**
* Run just this test.
* Run just this test.
...
...
h2/src/test/org/h2/test/synth/TestKill.java
浏览文件 @
231a81de
...
@@ -26,7 +26,7 @@ public class TestKill extends TestBase {
...
@@ -26,7 +26,7 @@ public class TestKill extends TestBase {
private
static
final
String
DIR
=
TestBase
.
getTestDir
(
"kill"
);
private
static
final
String
DIR
=
TestBase
.
getTestDir
(
"kill"
);
private
Connection
conn
;
private
Connection
conn
;
private
final
int
accounts
=
10
;
private
static
final
int
accounts
=
10
;
private
final
Random
random
=
new
Random
(
1
);
private
final
Random
random
=
new
Random
(
1
);
/**
/**
...
...
h2/src/test/org/h2/test/synth/TestPowerOffFs2.java
浏览文件 @
231a81de
...
@@ -27,8 +27,8 @@ public class TestPowerOffFs2 extends TestBase {
...
@@ -27,8 +27,8 @@ public class TestPowerOffFs2 extends TestBase {
private
FilePathDebug
fs
;
private
FilePathDebug
fs
;
private
String
url
;
private
String
url
;
private
final
String
user
=
"sa"
;
private
static
final
String
user
=
"sa"
;
private
final
String
password
=
"sa"
;
private
static
final
String
password
=
"sa"
;
private
final
ArrayList
<
Connection
>
connections
=
New
.
arrayList
();
private
final
ArrayList
<
Connection
>
connections
=
New
.
arrayList
();
private
final
ArrayList
<
String
>
tables
=
New
.
arrayList
();
private
final
ArrayList
<
String
>
tables
=
New
.
arrayList
();
...
...
h2/src/test/org/h2/test/synth/thread/TestMultiNews.java
浏览文件 @
231a81de
...
@@ -21,7 +21,7 @@ public class TestMultiNews extends TestMultiThread {
...
@@ -21,7 +21,7 @@ public class TestMultiNews extends TestMultiThread {
private
static
final
String
PREFIX_URL
=
private
static
final
String
PREFIX_URL
=
"http://feeds.wizbangblog.com/WizbangFullFeed?m="
;
"http://feeds.wizbangblog.com/WizbangFullFeed?m="
;
private
final
int
len
=
10000
;
private
static
final
int
len
=
10000
;
private
Connection
conn
;
private
Connection
conn
;
TestMultiNews
(
TestMulti
base
)
throws
SQLException
{
TestMultiNews
(
TestMulti
base
)
throws
SQLException
{
...
...
h2/src/tools/org/h2/build/code/CheckTextFiles.java
浏览文件 @
231a81de
...
@@ -30,9 +30,9 @@ public class CheckTextFiles {
...
@@ -30,9 +30,9 @@ public class CheckTextFiles {
private
static
final
String
[]
SUFFIX_CRLF
=
{
"bat"
};
private
static
final
String
[]
SUFFIX_CRLF
=
{
"bat"
};
private
boolean
failOnError
;
private
boolean
failOnError
;
private
final
boolean
allowTab
=
false
,
allowCR
=
true
,
allowTrailingSpaces
=
false
;
private
static
final
boolean
allowTab
=
false
,
allowCR
=
true
,
allowTrailingSpaces
=
false
;
private
final
int
spacesPerTab
=
4
;
private
static
final
int
spacesPerTab
=
4
;
private
final
boolean
autoFix
=
true
;
private
static
final
boolean
autoFix
=
true
;
private
boolean
useCRLF
;
private
boolean
useCRLF
;
private
final
String
[]
suffixIgnoreLicense
=
{
private
final
String
[]
suffixIgnoreLicense
=
{
"bat"
,
"nsi"
,
"txt"
,
"properties"
,
"xml"
,
"bat"
,
"nsi"
,
"txt"
,
"properties"
,
"xml"
,
...
...
h2/src/tools/org/h2/build/doc/GenerateDoc.java
浏览文件 @
231a81de
...
@@ -33,7 +33,7 @@ import org.h2.util.StringUtils;
...
@@ -33,7 +33,7 @@ import org.h2.util.StringUtils;
public
class
GenerateDoc
{
public
class
GenerateDoc
{
private
String
inDir
=
"src/docsrc/html"
;
private
String
inDir
=
"src/docsrc/html"
;
private
final
String
inHelp
=
"src/docsrc/help/help.csv"
;
private
static
final
String
inHelp
=
"src/docsrc/help/help.csv"
;
private
String
outDir
=
"docs/html"
;
private
String
outDir
=
"docs/html"
;
private
Connection
conn
;
private
Connection
conn
;
private
final
HashMap
<
String
,
Object
>
session
=
new
HashMap
<
String
,
Object
>();
private
final
HashMap
<
String
,
Object
>
session
=
new
HashMap
<
String
,
Object
>();
...
...
h2/src/tools/org/h2/build/doc/MergeDocs.java
浏览文件 @
231a81de
...
@@ -20,7 +20,7 @@ import org.h2.util.StringUtils;
...
@@ -20,7 +20,7 @@ import org.h2.util.StringUtils;
*/
*/
public
class
MergeDocs
{
public
class
MergeDocs
{
private
final
String
baseDir
=
"docs/html"
;
private
static
final
String
baseDir
=
"docs/html"
;
/**
/**
* This method is called when executing this application from the command
* This method is called when executing this application from the command
...
...
h2/src/tools/org/h2/build/doc/WebSite.java
浏览文件 @
231a81de
...
@@ -34,8 +34,8 @@ public class WebSite {
...
@@ -34,8 +34,8 @@ public class WebSite {
private
static
final
String
TRANSLATE_START
=
"<!-- translate"
;
private
static
final
String
TRANSLATE_START
=
"<!-- translate"
;
private
static
final
String
TRANSLATE_END
=
"translate -->"
;
private
static
final
String
TRANSLATE_END
=
"translate -->"
;
private
final
String
sourceDir
=
"docs"
;
private
static
final
String
sourceDir
=
"docs"
;
private
final
String
webDir
=
"../h2web"
;
private
static
final
String
webDir
=
"../h2web"
;
private
final
HashMap
<
String
,
String
>
fragments
=
new
HashMap
<
String
,
String
>();
private
final
HashMap
<
String
,
String
>
fragments
=
new
HashMap
<
String
,
String
>();
/**
/**
...
...
h2/src/tools/org/h2/dev/ftp/server/FtpServer.java
浏览文件 @
231a81de
...
@@ -68,7 +68,7 @@ public class FtpServer extends Tool implements Service {
...
@@ -68,7 +68,7 @@ public class FtpServer extends Tool implements Service {
private
ServerSocket
serverSocket
;
private
ServerSocket
serverSocket
;
private
int
port
=
DEFAULT_PORT
;
private
int
port
=
DEFAULT_PORT
;
private
int
openConnectionCount
;
private
int
openConnectionCount
;
private
final
int
maxConnectionCount
=
100
;
private
static
final
int
maxConnectionCount
=
100
;
private
final
SimpleDateFormat
dateFormatNew
=
new
SimpleDateFormat
(
"MMM dd HH:mm"
,
Locale
.
ENGLISH
);
private
final
SimpleDateFormat
dateFormatNew
=
new
SimpleDateFormat
(
"MMM dd HH:mm"
,
Locale
.
ENGLISH
);
private
final
SimpleDateFormat
dateFormatOld
=
new
SimpleDateFormat
(
"MMM dd yyyy"
,
Locale
.
ENGLISH
);
private
final
SimpleDateFormat
dateFormatOld
=
new
SimpleDateFormat
(
"MMM dd yyyy"
,
Locale
.
ENGLISH
);
...
...
h2/src/tools/org/h2/jaqu/TableInspector.java
浏览文件 @
231a81de
...
@@ -49,7 +49,7 @@ public class TableInspector {
...
@@ -49,7 +49,7 @@ public class TableInspector {
private
final
List
<
String
>
primaryKeys
=
New
.
arrayList
();
private
final
List
<
String
>
primaryKeys
=
New
.
arrayList
();
private
Map
<
String
,
IndexInspector
>
indexes
;
private
Map
<
String
,
IndexInspector
>
indexes
;
private
Map
<
String
,
ColumnInspector
>
columns
;
private
Map
<
String
,
ColumnInspector
>
columns
;
private
final
String
eol
=
"\n"
;
private
static
final
String
eol
=
"\n"
;
TableInspector
(
String
schema
,
String
table
,
boolean
forceUpperCase
,
TableInspector
(
String
schema
,
String
table
,
boolean
forceUpperCase
,
Class
<?
extends
java
.
util
.
Date
>
dateTimeClass
)
{
Class
<?
extends
java
.
util
.
Date
>
dateTimeClass
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论