Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
75ad6204
Unverified
提交
75ad6204
authored
1月 11, 2019
作者:
Evgenij Ryazanov
提交者:
GitHub
1月 11, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1655 from katzyn/deleteOnExit
Do not use File.deleteOnExit()
上级
beb14085
11ac5243
隐藏空白字符变更
内嵌
并排
正在显示
23 个修改的文件
包含
73 行增加
和
73 行删除
+73
-73
changelog.html
h2/src/docsrc/html/changelog.html
+2
-0
roadmap.html
h2/src/docsrc/html/roadmap.html
+0
-2
Delete.java
h2/src/main/org/h2/command/dml/Delete.java
+1
-4
Update.java
h2/src/main/org/h2/command/dml/Update.java
+1
-4
Database.java
h2/src/main/org/h2/engine/Database.java
+17
-3
SessionRemote.java
h2/src/main/org/h2/engine/SessionRemote.java
+1
-1
UndoLog.java
h2/src/main/org/h2/engine/UndoLog.java
+1
-1
MVTempResult.java
h2/src/main/org/h2/mvstore/db/MVTempResult.java
+1
-1
RowList.java
h2/src/main/org/h2/result/RowList.java
+5
-6
Data.java
h2/src/main/org/h2/store/Data.java
+1
-1
FilePath.java
h2/src/main/org/h2/store/fs/FilePath.java
+1
-4
FilePathDisk.java
h2/src/main/org/h2/store/fs/FilePathDisk.java
+1
-11
FilePathRec.java
h2/src/main/org/h2/store/fs/FilePathRec.java
+3
-5
FilePathWrapper.java
h2/src/main/org/h2/store/fs/FilePathWrapper.java
+2
-3
FilePathZip.java
h2/src/main/org/h2/store/fs/FilePathZip.java
+2
-4
FileUtils.java
h2/src/main/org/h2/store/fs/FileUtils.java
+2
-5
ValueLobDb.java
h2/src/main/org/h2/value/ValueLobDb.java
+1
-1
TestMemoryUsage.java
h2/src/test/org/h2/test/db/TestMemoryUsage.java
+19
-1
TestFileSystem.java
h2/src/test/org/h2/test/unit/TestFileSystem.java
+4
-4
FilePathDebug.java
h2/src/test/org/h2/test/utils/FilePathDebug.java
+3
-4
FilePathUnstable.java
h2/src/test/org/h2/test/utils/FilePathUnstable.java
+2
-3
dictionary.txt
h2/src/tools/org/h2/build/doc/dictionary.txt
+1
-1
FilePathZip2.java
h2/src/tools/org/h2/dev/fs/FilePathZip2.java
+2
-4
没有找到文件。
h2/src/docsrc/html/changelog.html
浏览文件 @
75ad6204
...
...
@@ -21,6 +21,8 @@ Change Log
<h2>
Next Version (unreleased)
</h2>
<ul>
<li>
Issue #1654: OOM in TestMemoryUsage, in big mode
</li>
<li>
Issue #1651: TIMESTAMP values near DST may be changed in MVStore database due to UTC-based PageStore format in some
temporary storages
</li>
...
...
h2/src/docsrc/html/roadmap.html
浏览文件 @
75ad6204
...
...
@@ -63,8 +63,6 @@ See also <a href="build.html#providing_patches">Providing Patches</a>.
</li><li>
PostgreSQL catalog: use BEFORE SELECT triggers instead of views over metadata tables.
</li><li>
Test very large databases and LOBs (up to 256 GB).
</li><li>
Store all temp files in the temp directory.
</li><li>
Don't use temp files, specially not deleteOnExit (bug 4513817: File.deleteOnExit consumes memory).
Also to allow opening client / server (remote) connections when using LOBs.
</li><li>
Make DDL (Data Definition) operations transactional.
</li><li>
Deferred integrity checking (DEFERRABLE INITIALLY DEFERRED).
</li><li>
Groovy Stored Procedures: http://groovy.codehaus.org/GSQL
...
...
h2/src/main/org/h2/command/dml/Delete.java
浏览文件 @
75ad6204
...
...
@@ -76,7 +76,6 @@ public class Delete extends Prepared {
session
.
getUser
().
checkRight
(
table
,
Right
.
DELETE
);
table
.
fire
(
session
,
Trigger
.
DELETE
,
true
);
table
.
lock
(
session
,
true
,
false
);
RowList
rows
=
new
RowList
(
session
);
int
limitRows
=
-
1
;
if
(
limitExpr
!=
null
)
{
Value
v
=
limitExpr
.
getValue
(
session
);
...
...
@@ -84,7 +83,7 @@ public class Delete extends Prepared {
limitRows
=
v
.
getInt
();
}
}
try
{
try
(
RowList
rows
=
new
RowList
(
session
))
{
setCurrentRowNumber
(
0
);
int
count
=
0
;
while
(
limitRows
!=
0
&&
targetTableFilter
.
next
())
{
...
...
@@ -128,8 +127,6 @@ public class Delete extends Prepared {
}
table
.
fire
(
session
,
Trigger
.
DELETE
,
false
);
return
count
;
}
finally
{
rows
.
close
();
}
}
...
...
h2/src/main/org/h2/command/dml/Update.java
浏览文件 @
75ad6204
...
...
@@ -102,8 +102,7 @@ public class Update extends Prepared {
public
int
update
()
{
targetTableFilter
.
startQuery
(
session
);
targetTableFilter
.
reset
();
RowList
rows
=
new
RowList
(
session
);
try
{
try
(
RowList
rows
=
new
RowList
(
session
))
{
Table
table
=
targetTableFilter
.
getTable
();
session
.
getUser
().
checkRight
(
table
,
Right
.
UPDATE
);
table
.
fire
(
session
,
Trigger
.
UPDATE
,
true
);
...
...
@@ -207,8 +206,6 @@ public class Update extends Prepared {
}
table
.
fire
(
session
,
Trigger
.
UPDATE
,
false
);
return
count
;
}
finally
{
rows
.
close
();
}
}
...
...
h2/src/main/org/h2/engine/Database.java
浏览文件 @
75ad6204
...
...
@@ -1410,12 +1410,27 @@ public class Database implements DataHandler {
* hook
*/
void
close
(
boolean
fromShutdownHook
)
{
DbException
b
=
backgroundException
.
getAndSet
(
null
);
try
{
closeImpl
(
fromShutdownHook
);
}
catch
(
Throwable
t
)
{
if
(
b
!=
null
)
{
t
.
addSuppressed
(
b
);
}
throw
t
;
}
if
(
b
!=
null
)
{
// wrap the exception, so we see it was thrown here
throw
DbException
.
get
(
b
.
getErrorCode
(),
b
,
b
.
getMessage
());
}
}
private
void
closeImpl
(
boolean
fromShutdownHook
)
{
try
{
synchronized
(
this
)
{
if
(
closing
)
{
return
;
}
throwLastBackgroundException
();
if
(
fileLockMethod
==
FileLockMethod
.
SERIALIZED
&&
!
reconnectChangePending
)
{
// another connection may have written something - don't write
...
...
@@ -1956,8 +1971,7 @@ public class Database implements DataHandler {
if
(!
persistent
)
{
name
=
"memFS:"
+
name
;
}
return
FileUtils
.
createTempFile
(
name
,
Constants
.
SUFFIX_TEMP_FILE
,
true
,
inTempDir
);
return
FileUtils
.
createTempFile
(
name
,
Constants
.
SUFFIX_TEMP_FILE
,
inTempDir
);
}
catch
(
IOException
e
)
{
throw
DbException
.
convertIOException
(
e
,
databaseName
);
}
...
...
h2/src/main/org/h2/engine/SessionRemote.java
浏览文件 @
75ad6204
...
...
@@ -376,7 +376,7 @@ public class SessionRemote extends SessionWithState implements DataHandler {
traceSystem
.
setLevelFile
(
level
);
if
(
level
>
0
&&
level
<
4
)
{
String
file
=
FileUtils
.
createTempFile
(
prefix
,
Constants
.
SUFFIX_TRACE_FILE
,
false
,
false
);
Constants
.
SUFFIX_TRACE_FILE
,
false
);
traceSystem
.
setFileName
(
file
);
}
}
catch
(
IOException
e
)
{
...
...
h2/src/main/org/h2/engine/UndoLog.java
浏览文件 @
75ad6204
...
...
@@ -143,6 +143,7 @@ public class UndoLog {
if
(
file
==
null
)
{
String
fileName
=
database
.
createTempFile
();
file
=
database
.
openFile
(
fileName
,
"rw"
,
false
);
file
.
autoDelete
();
file
.
setCheckedWriting
(
false
);
file
.
setLength
(
FileStore
.
HEADER_LENGTH
);
}
...
...
@@ -160,7 +161,6 @@ public class UndoLog {
storedEntries
+=
records
.
size
();
memoryUndo
=
0
;
records
.
clear
();
file
.
autoDelete
();
}
}
...
...
h2/src/main/org/h2/mvstore/db/MVTempResult.java
浏览文件 @
75ad6204
...
...
@@ -159,7 +159,7 @@ public abstract class MVTempResult implements ResultExternal {
*/
MVTempResult
(
Database
database
,
int
columnCount
,
int
visibleColumnCount
)
{
try
{
String
fileName
=
FileUtils
.
createTempFile
(
"h2tmp"
,
Constants
.
SUFFIX_TEMP_FILE
,
false
,
true
);
String
fileName
=
FileUtils
.
createTempFile
(
"h2tmp"
,
Constants
.
SUFFIX_TEMP_FILE
,
true
);
Builder
builder
=
new
MVStore
.
Builder
().
fileName
(
fileName
).
cacheSize
(
0
).
autoCommitDisabled
();
byte
[]
key
=
database
.
getFileEncryptionKey
();
if
(
key
!=
null
)
{
...
...
h2/src/main/org/h2/result/RowList.java
浏览文件 @
75ad6204
...
...
@@ -20,7 +20,7 @@ import org.h2.value.Value;
* A list of rows. If the list grows too large, it is buffered to disk
* automatically.
*/
public
class
RowList
{
public
class
RowList
implements
AutoCloseable
{
private
final
Session
session
;
private
final
ArrayList
<
Row
>
list
=
Utils
.
newSmallArrayList
();
...
...
@@ -48,14 +48,14 @@ public class RowList {
}
private
void
writeRow
(
Data
buff
,
Row
r
)
{
buff
.
checkCapacity
(
1
+
Data
.
LENGTH_INT
*
8
);
buff
.
checkCapacity
(
2
+
Data
.
LENGTH_INT
*
3
+
Data
.
LENGTH_LONG
);
buff
.
writeByte
((
byte
)
1
);
buff
.
writeInt
(
r
.
getMemory
());
int
columnCount
=
r
.
getColumnCount
();
buff
.
writeInt
(
columnCount
);
buff
.
writeLong
(
r
.
getKey
());
buff
.
writeInt
(
r
.
getVersion
());
buff
.
write
Int
(
r
.
isDeleted
()
?
1
:
0
);
buff
.
write
Byte
(
r
.
isDeleted
()
?
(
byte
)
1
:
(
byte
)
0
);
for
(
int
i
=
0
;
i
<
columnCount
;
i
++)
{
Value
v
=
r
.
getValue
(
i
);
buff
.
checkCapacity
(
1
);
...
...
@@ -104,7 +104,6 @@ public class RowList {
writeRow
(
buff
,
r
);
}
flushBuffer
(
buff
);
file
.
autoDelete
();
list
.
clear
();
memory
=
0
;
}
...
...
@@ -169,7 +168,7 @@ public class RowList {
int
columnCount
=
buff
.
readInt
();
long
key
=
buff
.
readLong
();
int
version
=
buff
.
readInt
();
boolean
deleted
=
buff
.
read
Int
()
==
1
;
boolean
deleted
=
buff
.
read
Byte
()
!=
0
;
Value
[]
values
=
new
Value
[
columnCount
];
for
(
int
i
=
0
;
i
<
columnCount
;
i
++)
{
Value
v
;
...
...
@@ -242,9 +241,9 @@ public class RowList {
/**
* Close the result list and delete the temporary file.
*/
@Override
public
void
close
()
{
if
(
file
!=
null
)
{
file
.
autoDelete
();
file
.
closeAndDeleteSilently
();
file
=
null
;
rowBuff
=
null
;
...
...
h2/src/main/org/h2/store/Data.java
浏览文件 @
75ad6204
...
...
@@ -73,7 +73,7 @@ public class Data {
/**
* The length of a long value.
*/
p
rivate
static
final
int
LENGTH_LONG
=
8
;
p
ublic
static
final
int
LENGTH_LONG
=
8
;
/**
* Storage type for ValueRow.
...
...
h2/src/main/org/h2/store/fs/FilePath.java
浏览文件 @
75ad6204
...
...
@@ -250,14 +250,11 @@ public abstract class FilePath {
* Create a new temporary file.
*
* @param suffix the suffix
* @param deleteOnExit if the file should be deleted when the virtual
* machine exists
* @param inTempDir if the file should be stored in the temporary directory
* @return the name of the created file
*/
@SuppressWarnings
(
"unused"
)
public
FilePath
createTempFile
(
String
suffix
,
boolean
deleteOnExit
,
boolean
inTempDir
)
throws
IOException
{
public
FilePath
createTempFile
(
String
suffix
,
boolean
inTempDir
)
throws
IOException
{
while
(
true
)
{
FilePath
p
=
getPath
(
name
+
getNextTempFileNamePart
(
false
)
+
suffix
);
if
(
p
.
exists
()
||
!
p
.
createFile
())
{
...
...
h2/src/main/org/h2/store/fs/FilePathDisk.java
浏览文件 @
75ad6204
...
...
@@ -381,8 +381,7 @@ public class FilePathDisk extends FilePath {
}
@Override
public
FilePath
createTempFile
(
String
suffix
,
boolean
deleteOnExit
,
boolean
inTempDir
)
throws
IOException
{
public
FilePath
createTempFile
(
String
suffix
,
boolean
inTempDir
)
throws
IOException
{
String
fileName
=
name
+
"."
;
String
prefix
=
new
File
(
fileName
).
getName
();
File
dir
;
...
...
@@ -399,15 +398,6 @@ public class FilePathDisk extends FilePath {
getNextTempFileNamePart
(
true
);
continue
;
}
if
(
deleteOnExit
)
{
try
{
f
.
deleteOnExit
();
}
catch
(
Throwable
e
)
{
// sometimes this throws a NullPointerException
// at java.io.DeleteOnExitHook.add(DeleteOnExitHook.java:33)
// we can ignore it
}
}
return
get
(
f
.
getCanonicalPath
());
}
}
...
...
h2/src/main/org/h2/store/fs/FilePathRec.java
浏览文件 @
75ad6204
...
...
@@ -46,11 +46,9 @@ public class FilePathRec extends FilePathWrapper {
}
@Override
public
FilePath
createTempFile
(
String
suffix
,
boolean
deleteOnExit
,
boolean
inTempDir
)
throws
IOException
{
log
(
Recorder
.
CREATE_TEMP_FILE
,
unwrap
(
name
)
+
":"
+
suffix
+
":"
+
deleteOnExit
+
":"
+
inTempDir
);
return
super
.
createTempFile
(
suffix
,
deleteOnExit
,
inTempDir
);
public
FilePath
createTempFile
(
String
suffix
,
boolean
inTempDir
)
throws
IOException
{
log
(
Recorder
.
CREATE_TEMP_FILE
,
unwrap
(
name
)
+
":"
+
suffix
+
":"
+
inTempDir
);
return
super
.
createTempFile
(
suffix
,
inTempDir
);
}
@Override
...
...
h2/src/main/org/h2/store/fs/FilePathWrapper.java
浏览文件 @
75ad6204
...
...
@@ -158,9 +158,8 @@ public abstract class FilePathWrapper extends FilePath {
}
@Override
public
FilePath
createTempFile
(
String
suffix
,
boolean
deleteOnExit
,
boolean
inTempDir
)
throws
IOException
{
return
wrap
(
base
.
createTempFile
(
suffix
,
deleteOnExit
,
inTempDir
));
public
FilePath
createTempFile
(
String
suffix
,
boolean
inTempDir
)
throws
IOException
{
return
wrap
(
base
.
createTempFile
(
suffix
,
inTempDir
));
}
}
h2/src/main/org/h2/store/fs/FilePathZip.java
浏览文件 @
75ad6204
...
...
@@ -234,13 +234,11 @@ public class FilePathZip extends FilePath {
}
@Override
public
FilePath
createTempFile
(
String
suffix
,
boolean
deleteOnExit
,
boolean
inTempDir
)
throws
IOException
{
public
FilePath
createTempFile
(
String
suffix
,
boolean
inTempDir
)
throws
IOException
{
if
(!
inTempDir
)
{
throw
new
IOException
(
"File system is read-only"
);
}
return
new
FilePathDisk
().
getPath
(
name
).
createTempFile
(
suffix
,
deleteOnExit
,
true
);
return
new
FilePathDisk
().
getPath
(
name
).
createTempFile
(
suffix
,
true
);
}
@Override
...
...
h2/src/main/org/h2/store/fs/FileUtils.java
浏览文件 @
75ad6204
...
...
@@ -335,15 +335,12 @@ public class FileUtils {
* @param prefix the prefix of the file name (including directory name if
* required)
* @param suffix the suffix
* @param deleteOnExit if the file should be deleted when the virtual
* machine exists
* @param inTempDir if the file should be stored in the temporary directory
* @return the name of the created file
*/
public
static
String
createTempFile
(
String
prefix
,
String
suffix
,
boolean
deleteOnExit
,
boolean
inTempDir
)
throws
IOException
{
return
FilePath
.
get
(
prefix
).
createTempFile
(
suffix
,
deleteOnExit
,
inTempDir
).
toString
();
boolean
inTempDir
)
throws
IOException
{
return
FilePath
.
get
(
prefix
).
createTempFile
(
suffix
,
inTempDir
).
toString
();
}
/**
...
...
h2/src/main/org/h2/value/ValueLobDb.java
浏览文件 @
75ad6204
...
...
@@ -179,7 +179,7 @@ public class ValueLobDb extends Value {
if
(
path
.
isEmpty
())
{
path
=
SysProperties
.
PREFIX_TEMP_FILE
;
}
return
FileUtils
.
createTempFile
(
path
,
Constants
.
SUFFIX_TEMP_FILE
,
true
,
true
);
return
FileUtils
.
createTempFile
(
path
,
Constants
.
SUFFIX_TEMP_FILE
,
true
);
}
/**
...
...
h2/src/test/org/h2/test/db/TestMemoryUsage.java
浏览文件 @
75ad6204
...
...
@@ -13,6 +13,7 @@ import java.sql.Statement;
import
java.util.Random
;
import
java.util.concurrent.TimeUnit
;
import
org.h2.api.ErrorCode
;
import
org.h2.test.TestBase
;
import
org.h2.test.TestDb
;
import
org.h2.util.Utils
;
...
...
@@ -72,7 +73,7 @@ public class TestMemoryUsage extends TestDb {
}
}
finally
{
freeMemory
();
c
onn
.
close
(
);
c
loseConnection
(
conn
);
}
}
...
...
@@ -145,7 +146,24 @@ public class TestMemoryUsage extends TestDb {
}
}
finally
{
freeMemory
();
closeConnection
(
conn
);
}
}
/**
* Closes the specified connection. It silently consumes OUT_OF_MEMORY that
* may happen in background thread during the tests.
*
* @param conn connection to close
* @throws SQLException on other SQL exception
*/
private
static
void
closeConnection
(
Connection
conn
)
throws
SQLException
{
try
{
conn
.
close
();
}
catch
(
SQLException
e
)
{
if
(
e
.
getErrorCode
()
!=
ErrorCode
.
OUT_OF_MEMORY
)
{
throw
e
;
}
}
}
...
...
h2/src/test/org/h2/test/unit/TestFileSystem.java
浏览文件 @
75ad6204
...
...
@@ -370,7 +370,7 @@ public class TestFileSystem extends TestDb {
new
AssertThrows
(
IOException
.
class
)
{
@Override
public
void
test
()
throws
IOException
{
FileUtils
.
createTempFile
(
f
,
".tmp"
,
false
,
false
);
FileUtils
.
createTempFile
(
f
,
".tmp"
,
false
);
}};
final
FileChannel
channel
=
FileUtils
.
open
(
f
,
"r"
);
new
AssertThrows
(
IOException
.
class
)
{
...
...
@@ -670,7 +670,7 @@ public class TestFileSystem extends TestDb {
private
void
testRandomAccess
(
String
fsBase
,
int
seed
)
throws
Exception
{
StringBuilder
buff
=
new
StringBuilder
();
String
s
=
FileUtils
.
createTempFile
(
fsBase
+
"/tmp"
,
".tmp"
,
false
,
false
);
String
s
=
FileUtils
.
createTempFile
(
fsBase
+
"/tmp"
,
".tmp"
,
false
);
File
file
=
new
File
(
TestBase
.
BASE_TEST_DIR
+
"/tmp"
);
file
.
getParentFile
().
mkdirs
();
file
.
delete
();
...
...
@@ -784,7 +784,7 @@ public class TestFileSystem extends TestDb {
private
void
testTempFile
(
String
fsBase
)
throws
Exception
{
int
len
=
10000
;
String
s
=
FileUtils
.
createTempFile
(
fsBase
+
"/tmp"
,
".tmp"
,
false
,
false
);
String
s
=
FileUtils
.
createTempFile
(
fsBase
+
"/tmp"
,
".tmp"
,
false
);
OutputStream
out
=
FileUtils
.
newOutputStream
(
s
,
false
);
byte
[]
buffer
=
new
byte
[
len
];
out
.
write
(
buffer
);
...
...
@@ -804,7 +804,7 @@ public class TestFileSystem extends TestDb {
}
private
void
testConcurrent
(
String
fsBase
)
throws
Exception
{
String
s
=
FileUtils
.
createTempFile
(
fsBase
+
"/tmp"
,
".tmp"
,
false
,
false
);
String
s
=
FileUtils
.
createTempFile
(
fsBase
+
"/tmp"
,
".tmp"
,
false
);
File
file
=
new
File
(
TestBase
.
BASE_TEST_DIR
+
"/tmp"
);
file
.
getParentFile
().
mkdirs
();
file
.
delete
();
...
...
h2/src/test/org/h2/test/utils/FilePathDebug.java
浏览文件 @
75ad6204
...
...
@@ -191,10 +191,9 @@ public class FilePathDebug extends FilePathWrapper {
}
@Override
public
FilePath
createTempFile
(
String
suffix
,
boolean
deleteOnExit
,
boolean
inTempDir
)
throws
IOException
{
trace
(
name
,
"createTempFile"
,
suffix
,
deleteOnExit
,
inTempDir
);
return
super
.
createTempFile
(
suffix
,
deleteOnExit
,
inTempDir
);
public
FilePath
createTempFile
(
String
suffix
,
boolean
inTempDir
)
throws
IOException
{
trace
(
name
,
"createTempFile"
,
suffix
,
inTempDir
);
return
super
.
createTempFile
(
suffix
,
inTempDir
);
}
/**
...
...
h2/src/test/org/h2/test/utils/FilePathUnstable.java
浏览文件 @
75ad6204
...
...
@@ -198,9 +198,8 @@ public class FilePathUnstable extends FilePathWrapper {
}
@Override
public
FilePath
createTempFile
(
String
suffix
,
boolean
deleteOnExit
,
boolean
inTempDir
)
throws
IOException
{
return
super
.
createTempFile
(
suffix
,
deleteOnExit
,
inTempDir
);
public
FilePath
createTempFile
(
String
suffix
,
boolean
inTempDir
)
throws
IOException
{
return
super
.
createTempFile
(
suffix
,
inTempDir
);
}
@Override
...
...
h2/src/tools/org/h2/build/doc/dictionary.txt
浏览文件 @
75ad6204
...
...
@@ -805,4 +805,4 @@ queryparser tokenized freeze factorings recompilation unenclosed rfe dsync
econd irst bcef ordinality nord unnest
analyst occupation distributive josaph aor engineer sajeewa isuru randil kevin doctor businessman artist ashan
corrupts splitted disruption unintentional octets preconditions predicates subq objectweb insn opcodes
preserves masking holder unboxing avert iae transformed
preserves masking holder unboxing avert iae transformed
subtle
h2/src/tools/org/h2/dev/fs/FilePathZip2.java
浏览文件 @
75ad6204
...
...
@@ -61,13 +61,11 @@ public class FilePathZip2 extends FilePath {
}
@Override
public
FilePath
createTempFile
(
String
suffix
,
boolean
deleteOnExit
,
boolean
inTempDir
)
throws
IOException
{
public
FilePath
createTempFile
(
String
suffix
,
boolean
inTempDir
)
throws
IOException
{
if
(!
inTempDir
)
{
throw
new
IOException
(
"File system is read-only"
);
}
return
new
FilePathDisk
().
getPath
(
name
).
createTempFile
(
suffix
,
deleteOnExit
,
true
);
return
new
FilePathDisk
().
getPath
(
name
).
createTempFile
(
suffix
,
true
);
}
@Override
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论