Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
39aa8c14
提交
39aa8c14
authored
6月 21, 2008
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
switch to jdk 1.6 by default
上级
38ca69e9
全部展开
显示空白字符变更
内嵌
并排
正在显示
14 个修改的文件
包含
291 行增加
和
311 行删除
+291
-311
JdbcCallableStatement.java
h2/src/main/org/h2/jdbc/JdbcCallableStatement.java
+66
-66
JdbcClob.java
h2/src/main/org/h2/jdbc/JdbcClob.java
+4
-4
JdbcConnection.java
h2/src/main/org/h2/jdbc/JdbcConnection.java
+22
-22
JdbcDatabaseMetaData.java
h2/src/main/org/h2/jdbc/JdbcDatabaseMetaData.java
+14
-14
JdbcParameterMetaData.java
h2/src/main/org/h2/jdbc/JdbcParameterMetaData.java
+4
-4
JdbcPreparedStatement.java
h2/src/main/org/h2/jdbc/JdbcPreparedStatement.java
+8
-8
JdbcResultSet.java
h2/src/main/org/h2/jdbc/JdbcResultSet.java
+38
-38
JdbcResultSetMetaData.java
h2/src/main/org/h2/jdbc/JdbcResultSetMetaData.java
+4
-4
JdbcStatement.java
h2/src/main/org/h2/jdbc/JdbcStatement.java
+4
-4
JdbcConnectionPool.java
h2/src/main/org/h2/jdbcx/JdbcConnectionPool.java
+6
-6
JdbcDataSource.java
h2/src/main/org/h2/jdbcx/JdbcDataSource.java
+6
-6
JdbcXAConnection.java
h2/src/main/org/h2/jdbcx/JdbcXAConnection.java
+6
-6
SimpleResultSet.java
h2/src/main/org/h2/tools/SimpleResultSet.java
+95
-115
ObjectUtils.java
h2/src/main/org/h2/util/ObjectUtils.java
+14
-14
没有找到文件。
h2/src/main/org/h2/jdbc/JdbcCallableStatement.java
浏览文件 @
39aa8c14
差异被折叠。
点击展开。
h2/src/main/org/h2/jdbc/JdbcClob.java
浏览文件 @
39aa8c14
...
@@ -21,17 +21,17 @@ import org.h2.message.TraceObject;
...
@@ -21,17 +21,17 @@ import org.h2.message.TraceObject;
import
org.h2.util.IOUtils
;
import
org.h2.util.IOUtils
;
import
org.h2.value.Value
;
import
org.h2.value.Value
;
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
import
java.sql.NClob
;
import
java.sql.NClob
;
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* Represents a CLOB value.
* Represents a CLOB value.
*/
*/
public
class
JdbcClob
extends
TraceObject
implements
Clob
public
class
JdbcClob
extends
TraceObject
implements
Clob
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
,
NClob
,
NClob
## Java 1.6 end ##*/
//## Java 1.6 end ##
{
{
private
Value
value
;
private
Value
value
;
...
...
h2/src/main/org/h2/jdbc/JdbcConnection.java
浏览文件 @
39aa8c14
...
@@ -42,13 +42,13 @@ import org.h2.value.ValueLob;
...
@@ -42,13 +42,13 @@ import org.h2.value.ValueLob;
import
org.h2.value.ValueNull
;
import
org.h2.value.ValueNull
;
import
org.h2.value.ValueString
;
import
org.h2.value.ValueString
;
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
import
java.sql.Array
;
import
java.sql.Array
;
import
java.sql.NClob
;
import
java.sql.NClob
;
import
java.sql.Struct
;
import
java.sql.Struct
;
import
java.sql.SQLXML
;
import
java.sql.SQLXML
;
import
java.sql.SQLClientInfoException
;
import
java.sql.SQLClientInfoException
;
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* Represents a connection (session) to a database.
* Represents a connection (session) to a database.
...
@@ -1350,7 +1350,7 @@ public class JdbcConnection extends TraceObject implements Connection {
...
@@ -1350,7 +1350,7 @@ public class JdbcConnection extends TraceObject implements Connection {
*
*
* @return the object
* @return the object
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
NClob
createNClob
()
throws
SQLException
{
public
NClob
createNClob
()
throws
SQLException
{
try
{
try
{
int
id
=
getNextId
(
TraceObject
.
CLOB
);
int
id
=
getNextId
(
TraceObject
.
CLOB
);
...
@@ -1362,36 +1362,36 @@ public class JdbcConnection extends TraceObject implements Connection {
...
@@ -1362,36 +1362,36 @@ public class JdbcConnection extends TraceObject implements Connection {
throw
logAndConvert
(
e
);
throw
logAndConvert
(
e
);
}
}
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported] Create a new empty SQLXML object.
* [Not supported] Create a new empty SQLXML object.
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
SQLXML
createSQLXML
()
throws
SQLException
{
public
SQLXML
createSQLXML
()
throws
SQLException
{
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported] Create a new empty Array object.
* [Not supported] Create a new empty Array object.
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
Array
createArrayOf
(
String
typeName
,
Object
[]
elements
)
public
Array
createArrayOf
(
String
typeName
,
Object
[]
elements
)
throws
SQLException
{
throws
SQLException
{
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported] Create a new empty Struct object.
* [Not supported] Create a new empty Struct object.
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
Struct
createStruct
(
String
typeName
,
Object
[]
attributes
)
public
Struct
createStruct
(
String
typeName
,
Object
[]
attributes
)
throws
SQLException
{
throws
SQLException
{
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* Returns true if this connection is still valid.
* Returns true if this connection is still valid.
...
@@ -1414,61 +1414,61 @@ public class JdbcConnection extends TraceObject implements Connection {
...
@@ -1414,61 +1414,61 @@ public class JdbcConnection extends TraceObject implements Connection {
/**
/**
* [Not supported] Set a client property.
* [Not supported] Set a client property.
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
void
setClientInfo
(
String
name
,
String
value
)
public
void
setClientInfo
(
String
name
,
String
value
)
throws
SQLClientInfoException
{
throws
SQLClientInfoException
{
throw
new
SQLClientInfoException
();
throw
new
SQLClientInfoException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported] Set the client properties.
* [Not supported] Set the client properties.
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
void
setClientInfo
(
Properties
properties
)
throws
SQLClientInfoException
{
public
void
setClientInfo
(
Properties
properties
)
throws
SQLClientInfoException
{
throw
new
SQLClientInfoException
();
throw
new
SQLClientInfoException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported] Get the client properties.
* [Not supported] Get the client properties.
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
Properties
getClientInfo
()
throws
SQLClientInfoException
{
public
Properties
getClientInfo
()
throws
SQLClientInfoException
{
throw
new
SQLClientInfoException
();
throw
new
SQLClientInfoException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported] Set a client property.
* [Not supported] Set a client property.
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
String
getClientInfo
(
String
name
)
throws
SQLException
{
public
String
getClientInfo
(
String
name
)
throws
SQLException
{
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported] Return an object of this class if possible.
* [Not supported] Return an object of this class if possible.
*
*
* @param iface the class
* @param iface the class
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
<
T
>
T
unwrap
(
Class
<
T
>
iface
)
throws
SQLException
{
public
<
T
>
T
unwrap
(
Class
<
T
>
iface
)
throws
SQLException
{
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported] Checks if unwrap can return an object of this class.
* [Not supported] Checks if unwrap can return an object of this class.
*
*
* @param iface the class
* @param iface the class
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
boolean
isWrapperFor
(
Class
<
?
>
iface
)
throws
SQLException
{
public
boolean
isWrapperFor
(
Class
<
?
>
iface
)
throws
SQLException
{
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
Value
createClob
(
Reader
x
,
long
length
)
throws
SQLException
{
Value
createClob
(
Reader
x
,
long
length
)
throws
SQLException
{
if
(
x
==
null
)
{
if
(
x
==
null
)
{
...
...
h2/src/main/org/h2/jdbc/JdbcDatabaseMetaData.java
浏览文件 @
39aa8c14
...
@@ -10,9 +10,9 @@ import java.sql.Connection;
...
@@ -10,9 +10,9 @@ import java.sql.Connection;
import
java.sql.DatabaseMetaData
;
import
java.sql.DatabaseMetaData
;
import
java.sql.PreparedStatement
;
import
java.sql.PreparedStatement
;
import
java.sql.ResultSet
;
import
java.sql.ResultSet
;
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
import
java.sql.RowIdLifetime
;
import
java.sql.RowIdLifetime
;
## Java 1.6 end ##*/
//## Java 1.6 end ##
import
java.sql.SQLException
;
import
java.sql.SQLException
;
import
org.h2.constant.SysProperties
;
import
org.h2.constant.SysProperties
;
...
@@ -2647,23 +2647,23 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
...
@@ -2647,23 +2647,23 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
* Get the lifetime of a rowid.
* Get the lifetime of a rowid.
* @return ROWID_UNSUPPORTED
* @return ROWID_UNSUPPORTED
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
RowIdLifetime
getRowIdLifetime
()
{
public
RowIdLifetime
getRowIdLifetime
()
{
debugCodeCall
(
"getRowIdLifetime"
);
debugCodeCall
(
"getRowIdLifetime"
);
return
RowIdLifetime
.
ROWID_UNSUPPORTED
;
return
RowIdLifetime
.
ROWID_UNSUPPORTED
;
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported] Gets the list of schemas.
* [Not supported] Gets the list of schemas.
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
ResultSet
getSchemas
(
String
catalog
,
String
schemaPattern
)
public
ResultSet
getSchemas
(
String
catalog
,
String
schemaPattern
)
throws
SQLException
{
throws
SQLException
{
debugCodeCall
(
"getSchemas"
);
debugCodeCall
(
"getSchemas"
);
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* Returns whether the database supports calling functions using the call syntax.
* Returns whether the database supports calling functions using the call syntax.
...
@@ -2694,45 +2694,45 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
...
@@ -2694,45 +2694,45 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
/**
/**
* [Not supported] Return an object of this class if possible.
* [Not supported] Return an object of this class if possible.
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
<
T
>
T
unwrap
(
Class
<
T
>
iface
)
throws
SQLException
{
public
<
T
>
T
unwrap
(
Class
<
T
>
iface
)
throws
SQLException
{
debugCodeCall
(
"unwrap"
);
debugCodeCall
(
"unwrap"
);
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported] Checks if unwrap can return an object of this class.
* [Not supported] Checks if unwrap can return an object of this class.
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
boolean
isWrapperFor
(
Class
<
?
>
iface
)
throws
SQLException
{
public
boolean
isWrapperFor
(
Class
<
?
>
iface
)
throws
SQLException
{
debugCodeCall
(
"isWrapperFor"
);
debugCodeCall
(
"isWrapperFor"
);
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported] Gets the list of function columns.
* [Not supported] Gets the list of function columns.
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
ResultSet
getFunctionColumns
(
String
catalog
,
String
schemaPattern
,
public
ResultSet
getFunctionColumns
(
String
catalog
,
String
schemaPattern
,
String
functionNamePattern
,
String
columnNamePattern
)
String
functionNamePattern
,
String
columnNamePattern
)
throws
SQLException
{
throws
SQLException
{
debugCodeCall
(
"getFunctionColumns"
);
debugCodeCall
(
"getFunctionColumns"
);
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported] Gets the list of functions.
* [Not supported] Gets the list of functions.
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
ResultSet
getFunctions
(
String
catalog
,
String
schemaPattern
,
public
ResultSet
getFunctions
(
String
catalog
,
String
schemaPattern
,
String
functionNamePattern
)
throws
SQLException
{
String
functionNamePattern
)
throws
SQLException
{
debugCodeCall
(
"getFunctions"
);
debugCodeCall
(
"getFunctions"
);
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* INTERNAL
* INTERNAL
...
...
h2/src/main/org/h2/jdbc/JdbcParameterMetaData.java
浏览文件 @
39aa8c14
...
@@ -218,22 +218,22 @@ implements ParameterMetaData
...
@@ -218,22 +218,22 @@ implements ParameterMetaData
/**
/**
* [Not supported] Return an object of this class if possible.
* [Not supported] Return an object of this class if possible.
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
<
T
>
T
unwrap
(
Class
<
T
>
iface
)
throws
SQLException
{
public
<
T
>
T
unwrap
(
Class
<
T
>
iface
)
throws
SQLException
{
debugCodeCall
(
"unwrap"
);
debugCodeCall
(
"unwrap"
);
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported] Checks if unwrap can return an object of this class.
* [Not supported] Checks if unwrap can return an object of this class.
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
boolean
isWrapperFor
(
Class
<
?
>
iface
)
throws
SQLException
{
public
boolean
isWrapperFor
(
Class
<
?
>
iface
)
throws
SQLException
{
debugCodeCall
(
"isWrapperFor"
);
debugCodeCall
(
"isWrapperFor"
);
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* INTERNAL
* INTERNAL
...
...
h2/src/main/org/h2/jdbc/JdbcPreparedStatement.java
浏览文件 @
39aa8c14
...
@@ -50,11 +50,11 @@ import org.h2.value.ValueString;
...
@@ -50,11 +50,11 @@ import org.h2.value.ValueString;
import
org.h2.value.ValueTime
;
import
org.h2.value.ValueTime
;
import
org.h2.value.ValueTimestamp
;
import
org.h2.value.ValueTimestamp
;
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
import
java.sql.RowId
;
import
java.sql.RowId
;
import
java.sql.NClob
;
import
java.sql.NClob
;
import
java.sql.SQLXML
;
import
java.sql.SQLXML
;
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* Represents a prepared statement.
* Represents a prepared statement.
...
@@ -1231,11 +1231,11 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
...
@@ -1231,11 +1231,11 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
/**
/**
* [Not supported] Sets the value of a parameter as a row id.
* [Not supported] Sets the value of a parameter as a row id.
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
void
setRowId
(
int
parameterIndex
,
RowId
x
)
throws
SQLException
{
public
void
setRowId
(
int
parameterIndex
,
RowId
x
)
throws
SQLException
{
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* Sets the value of a parameter.
* Sets the value of a parameter.
...
@@ -1295,7 +1295,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
...
@@ -1295,7 +1295,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
* @param x the value
* @param x the value
* @throws SQLException if this object is closed
* @throws SQLException if this object is closed
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
void
setNClob
(
int
parameterIndex
,
NClob
x
)
throws
SQLException
{
public
void
setNClob
(
int
parameterIndex
,
NClob
x
)
throws
SQLException
{
try
{
try
{
if
(
isDebugEnabled
())
{
if
(
isDebugEnabled
())
{
...
@@ -1313,7 +1313,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
...
@@ -1313,7 +1313,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
throw
logAndConvert
(
e
);
throw
logAndConvert
(
e
);
}
}
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* Sets the value of a parameter as a Clob.
* Sets the value of a parameter as a Clob.
...
@@ -1398,11 +1398,11 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
...
@@ -1398,11 +1398,11 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
/**
/**
* [Not supported] Sets the value of a parameter as a SQLXML object.
* [Not supported] Sets the value of a parameter as a SQLXML object.
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
void
setSQLXML
(
int
parameterIndex
,
SQLXML
x
)
throws
SQLException
{
public
void
setSQLXML
(
int
parameterIndex
,
SQLXML
x
)
throws
SQLException
{
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* INTERNAL
* INTERNAL
...
...
h2/src/main/org/h2/jdbc/JdbcResultSet.java
浏览文件 @
39aa8c14
...
@@ -26,11 +26,11 @@ import java.util.Calendar;
...
@@ -26,11 +26,11 @@ import java.util.Calendar;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
import
java.sql.NClob
;
import
java.sql.NClob
;
import
java.sql.RowId
;
import
java.sql.RowId
;
import
java.sql.SQLXML
;
import
java.sql.SQLXML
;
## Java 1.6 end ##*/
//## Java 1.6 end ##
import
org.h2.constant.ErrorCode
;
import
org.h2.constant.ErrorCode
;
import
org.h2.constant.SysProperties
;
import
org.h2.constant.SysProperties
;
...
@@ -3031,22 +3031,22 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
...
@@ -3031,22 +3031,22 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
*
*
* @param columnIndex (1,2,...)
* @param columnIndex (1,2,...)
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
RowId
getRowId
(
int
columnIndex
)
throws
SQLException
{
public
RowId
getRowId
(
int
columnIndex
)
throws
SQLException
{
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported] Returns the value of the specified column as a row id.
* [Not supported] Returns the value of the specified column as a row id.
*
*
* @param columnName the name of the column label
* @param columnName the name of the column label
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
RowId
getRowId
(
String
columnName
)
throws
SQLException
{
public
RowId
getRowId
(
String
columnName
)
throws
SQLException
{
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported] Updates a column in the current or insert row.
* [Not supported] Updates a column in the current or insert row.
...
@@ -3054,11 +3054,11 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
...
@@ -3054,11 +3054,11 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @param columnIndex (1,2,...)
* @param columnIndex (1,2,...)
* @param x the value
* @param x the value
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
void
updateRowId
(
int
columnIndex
,
RowId
x
)
throws
SQLException
{
public
void
updateRowId
(
int
columnIndex
,
RowId
x
)
throws
SQLException
{
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported] Updates a column in the current or insert row.
* [Not supported] Updates a column in the current or insert row.
...
@@ -3066,11 +3066,11 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
...
@@ -3066,11 +3066,11 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @param columnName the name of the column label
* @param columnName the name of the column label
* @param x the value
* @param x the value
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
void
updateRowId
(
String
columnName
,
RowId
x
)
throws
SQLException
{
public
void
updateRowId
(
String
columnName
,
RowId
x
)
throws
SQLException
{
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* Returns the current result set holdability.
* Returns the current result set holdability.
...
@@ -3141,7 +3141,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
...
@@ -3141,7 +3141,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
/**
/**
* [Not supported]
* [Not supported]
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
void
updateNClob
(
int
columnIndex
,
NClob
x
)
throws
SQLException
{
public
void
updateNClob
(
int
columnIndex
,
NClob
x
)
throws
SQLException
{
try
{
try
{
if
(
isDebugEnabled
())
{
if
(
isDebugEnabled
())
{
...
@@ -3152,12 +3152,12 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
...
@@ -3152,12 +3152,12 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
throw
logAndConvert
(
e
);
throw
logAndConvert
(
e
);
}
}
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported]
* [Not supported]
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
void
updateNClob
(
int
columnIndex
,
Reader
x
)
throws
SQLException
{
public
void
updateNClob
(
int
columnIndex
,
Reader
x
)
throws
SQLException
{
try
{
try
{
if
(
isDebugEnabled
())
{
if
(
isDebugEnabled
())
{
...
@@ -3168,12 +3168,12 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
...
@@ -3168,12 +3168,12 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
throw
logAndConvert
(
e
);
throw
logAndConvert
(
e
);
}
}
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported]
* [Not supported]
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
void
updateNClob
(
int
columnIndex
,
Reader
x
,
long
length
)
public
void
updateNClob
(
int
columnIndex
,
Reader
x
,
long
length
)
throws
SQLException
{
throws
SQLException
{
try
{
try
{
...
@@ -3185,12 +3185,12 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
...
@@ -3185,12 +3185,12 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
throw
logAndConvert
(
e
);
throw
logAndConvert
(
e
);
}
}
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported]
* [Not supported]
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
void
updateNClob
(
String
columnName
,
Reader
x
)
public
void
updateNClob
(
String
columnName
,
Reader
x
)
throws
SQLException
{
throws
SQLException
{
try
{
try
{
...
@@ -3202,12 +3202,12 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
...
@@ -3202,12 +3202,12 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
throw
logAndConvert
(
e
);
throw
logAndConvert
(
e
);
}
}
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported]
* [Not supported]
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
void
updateNClob
(
String
columnName
,
Reader
x
,
long
length
)
public
void
updateNClob
(
String
columnName
,
Reader
x
,
long
length
)
throws
SQLException
{
throws
SQLException
{
try
{
try
{
...
@@ -3219,12 +3219,12 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
...
@@ -3219,12 +3219,12 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
throw
logAndConvert
(
e
);
throw
logAndConvert
(
e
);
}
}
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported]
* [Not supported]
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
void
updateNClob
(
String
columnName
,
NClob
x
)
throws
SQLException
{
public
void
updateNClob
(
String
columnName
,
NClob
x
)
throws
SQLException
{
try
{
try
{
if
(
isDebugEnabled
())
{
if
(
isDebugEnabled
())
{
...
@@ -3235,7 +3235,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
...
@@ -3235,7 +3235,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
throw
logAndConvert
(
e
);
throw
logAndConvert
(
e
);
}
}
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
...
@@ -3245,7 +3245,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
...
@@ -3245,7 +3245,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @return the value
* @return the value
* @throws SQLException if the column is not found or if the result set is closed
* @throws SQLException if the column is not found or if the result set is closed
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
NClob
getNClob
(
int
columnIndex
)
throws
SQLException
{
public
NClob
getNClob
(
int
columnIndex
)
throws
SQLException
{
try
{
try
{
int
id
=
getNextId
(
TraceObject
.
CLOB
);
int
id
=
getNextId
(
TraceObject
.
CLOB
);
...
@@ -3256,7 +3256,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
...
@@ -3256,7 +3256,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
throw
logAndConvert
(
e
);
throw
logAndConvert
(
e
);
}
}
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* Returns the value of the specified column as a Clob.
* Returns the value of the specified column as a Clob.
...
@@ -3265,7 +3265,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
...
@@ -3265,7 +3265,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @return the value
* @return the value
* @throws SQLException if the column is not found or if the result set is closed
* @throws SQLException if the column is not found or if the result set is closed
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
NClob
getNClob
(
String
columnName
)
throws
SQLException
{
public
NClob
getNClob
(
String
columnName
)
throws
SQLException
{
try
{
try
{
int
id
=
getNextId
(
TraceObject
.
CLOB
);
int
id
=
getNextId
(
TraceObject
.
CLOB
);
...
@@ -3276,45 +3276,45 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
...
@@ -3276,45 +3276,45 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
throw
logAndConvert
(
e
);
throw
logAndConvert
(
e
);
}
}
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported] Returns the value of the specified column as a SQLXML object.
* [Not supported] Returns the value of the specified column as a SQLXML object.
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
SQLXML
getSQLXML
(
int
columnIndex
)
throws
SQLException
{
public
SQLXML
getSQLXML
(
int
columnIndex
)
throws
SQLException
{
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported] Returns the value of the specified column as a SQLXML object.
* [Not supported] Returns the value of the specified column as a SQLXML object.
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
SQLXML
getSQLXML
(
String
columnName
)
throws
SQLException
{
public
SQLXML
getSQLXML
(
String
columnName
)
throws
SQLException
{
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported] Updates a column in the current or insert row.
* [Not supported] Updates a column in the current or insert row.
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
void
updateSQLXML
(
int
columnIndex
,
SQLXML
xmlObject
)
public
void
updateSQLXML
(
int
columnIndex
,
SQLXML
xmlObject
)
throws
SQLException
{
throws
SQLException
{
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported] Updates a column in the current or insert row.
* [Not supported] Updates a column in the current or insert row.
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
void
updateSQLXML
(
String
columnName
,
SQLXML
xmlObject
)
public
void
updateSQLXML
(
String
columnName
,
SQLXML
xmlObject
)
throws
SQLException
{
throws
SQLException
{
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* Returns the value of the specified column as a String.
* Returns the value of the specified column as a String.
...
@@ -3451,22 +3451,22 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
...
@@ -3451,22 +3451,22 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
/**
/**
* [Not supported] Return an object of this class if possible.
* [Not supported] Return an object of this class if possible.
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
<
T
>
T
unwrap
(
Class
<
T
>
iface
)
throws
SQLException
{
public
<
T
>
T
unwrap
(
Class
<
T
>
iface
)
throws
SQLException
{
debugCode
(
"unwrap"
);
debugCode
(
"unwrap"
);
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported] Checks if unwrap can return an object of this class.
* [Not supported] Checks if unwrap can return an object of this class.
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
boolean
isWrapperFor
(
Class
<
?
>
iface
)
throws
SQLException
{
public
boolean
isWrapperFor
(
Class
<
?
>
iface
)
throws
SQLException
{
debugCode
(
"isWrapperFor"
);
debugCode
(
"isWrapperFor"
);
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* INTERNAL
* INTERNAL
...
...
h2/src/main/org/h2/jdbc/JdbcResultSetMetaData.java
浏览文件 @
39aa8c14
...
@@ -431,22 +431,22 @@ public class JdbcResultSetMetaData extends TraceObject implements ResultSetMetaD
...
@@ -431,22 +431,22 @@ public class JdbcResultSetMetaData extends TraceObject implements ResultSetMetaD
/**
/**
* [Not supported] Return an object of this class if possible.
* [Not supported] Return an object of this class if possible.
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
<
T
>
T
unwrap
(
Class
<
T
>
iface
)
throws
SQLException
{
public
<
T
>
T
unwrap
(
Class
<
T
>
iface
)
throws
SQLException
{
debugCodeCall
(
"unwrap"
);
debugCodeCall
(
"unwrap"
);
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported] Checks if unwrap can return an object of this class.
* [Not supported] Checks if unwrap can return an object of this class.
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
boolean
isWrapperFor
(
Class
<
?
>
iface
)
throws
SQLException
{
public
boolean
isWrapperFor
(
Class
<
?
>
iface
)
throws
SQLException
{
debugCodeCall
(
"isWrapperFor"
);
debugCodeCall
(
"isWrapperFor"
);
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* INTERNAL
* INTERNAL
...
...
h2/src/main/org/h2/jdbc/JdbcStatement.java
浏览文件 @
39aa8c14
...
@@ -871,20 +871,20 @@ public class JdbcStatement extends TraceObject implements Statement {
...
@@ -871,20 +871,20 @@ public class JdbcStatement extends TraceObject implements Statement {
/**
/**
* [Not supported] Return an object of this class if possible.
* [Not supported] Return an object of this class if possible.
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
<
T
>
T
unwrap
(
Class
<
T
>
iface
)
throws
SQLException
{
public
<
T
>
T
unwrap
(
Class
<
T
>
iface
)
throws
SQLException
{
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported] Checks if unwrap can return an object of this class.
* [Not supported] Checks if unwrap can return an object of this class.
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
boolean
isWrapperFor
(
Class
<
?
>
iface
)
throws
SQLException
{
public
boolean
isWrapperFor
(
Class
<
?
>
iface
)
throws
SQLException
{
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* Returns whether this object is poolable.
* Returns whether this object is poolable.
...
...
h2/src/main/org/h2/jdbcx/JdbcConnectionPool.java
浏览文件 @
39aa8c14
...
@@ -31,9 +31,9 @@ import javax.sql.ConnectionPoolDataSource;
...
@@ -31,9 +31,9 @@ import javax.sql.ConnectionPoolDataSource;
import
javax.sql.DataSource
;
import
javax.sql.DataSource
;
import
javax.sql.PooledConnection
;
import
javax.sql.PooledConnection
;
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
import
org.h2.message.Message
;
import
org.h2.message.Message
;
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* A simple standalone JDBC connection pool.
* A simple standalone JDBC connection pool.
...
@@ -321,21 +321,21 @@ public class JdbcConnectionPool implements DataSource {
...
@@ -321,21 +321,21 @@ public class JdbcConnectionPool implements DataSource {
*
*
* @param iface the class
* @param iface the class
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
<
T
>
T
unwrap
(
Class
<
T
>
iface
)
throws
SQLException
{
public
<
T
>
T
unwrap
(
Class
<
T
>
iface
)
throws
SQLException
{
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported] Checks if unwrap can return an object of this class.
* [Not supported] Checks if unwrap can return an object of this class.
*
*
* @param iface the class
* @param iface the class
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
boolean
isWrapperFor
(
Class
<
?
>
iface
)
throws
SQLException
{
public
boolean
isWrapperFor
(
Class
<
?
>
iface
)
throws
SQLException
{
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
}
}
h2/src/main/org/h2/jdbcx/JdbcDataSource.java
浏览文件 @
39aa8c14
...
@@ -25,9 +25,9 @@ import javax.sql.XADataSource;
...
@@ -25,9 +25,9 @@ import javax.sql.XADataSource;
import
org.h2.jdbc.JdbcConnection
;
import
org.h2.jdbc.JdbcConnection
;
import
org.h2.message.TraceObject
;
import
org.h2.message.TraceObject
;
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
import
org.h2.message.Message
;
import
org.h2.message.Message
;
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* A data source for H2 database connections. It is a factory for XAConnection
* A data source for H2 database connections. It is a factory for XAConnection
...
@@ -320,22 +320,22 @@ implements XADataSource, DataSource, ConnectionPoolDataSource, Serializable, Ref
...
@@ -320,22 +320,22 @@ implements XADataSource, DataSource, ConnectionPoolDataSource, Serializable, Ref
*
*
* @param iface the class
* @param iface the class
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
<
T
>
T
unwrap
(
Class
<
T
>
iface
)
throws
SQLException
{
public
<
T
>
T
unwrap
(
Class
<
T
>
iface
)
throws
SQLException
{
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported] Checks if unwrap can return an object of this class.
* [Not supported] Checks if unwrap can return an object of this class.
*
*
* @param iface the class
* @param iface the class
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
boolean
isWrapperFor
(
Class
<
?
>
iface
)
throws
SQLException
{
public
boolean
isWrapperFor
(
Class
<
?
>
iface
)
throws
SQLException
{
throw
Message
.
getUnsupportedException
();
throw
Message
.
getUnsupportedException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* INTERNAL
* INTERNAL
...
...
h2/src/main/org/h2/jdbcx/JdbcXAConnection.java
浏览文件 @
39aa8c14
...
@@ -27,9 +27,9 @@ import org.h2.util.JdbcUtils;
...
@@ -27,9 +27,9 @@ import org.h2.util.JdbcUtils;
import
org.h2.message.TraceObject
;
import
org.h2.message.TraceObject
;
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
import
javax.sql.StatementEventListener
;
import
javax.sql.StatementEventListener
;
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* This class provides support for distributed transactions.
* This class provides support for distributed transactions.
...
@@ -395,22 +395,22 @@ implements XAConnection, XAResource, JdbcConnectionListener
...
@@ -395,22 +395,22 @@ implements XAConnection, XAResource, JdbcConnectionListener
*
*
* @param listener the new statement event listener
* @param listener the new statement event listener
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
void
addStatementEventListener
(
StatementEventListener
listener
)
{
public
void
addStatementEventListener
(
StatementEventListener
listener
)
{
throw
new
UnsupportedOperationException
();
throw
new
UnsupportedOperationException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* [Not supported] Remove a statement event listener.
* [Not supported] Remove a statement event listener.
*
*
* @param listener the statement event listener
* @param listener the statement event listener
*/
*/
/
*
## Java 1.6 begin ##
/
/
## Java 1.6 begin ##
public
void
removeStatementEventListener
(
StatementEventListener
listener
)
{
public
void
removeStatementEventListener
(
StatementEventListener
listener
)
{
throw
new
UnsupportedOperationException
();
throw
new
UnsupportedOperationException
();
}
}
## Java 1.6 end ##*/
//## Java 1.6 end ##
/**
/**
* INTERNAL
* INTERNAL
...
...
h2/src/main/org/h2/tools/SimpleResultSet.java
浏览文件 @
39aa8c14
差异被折叠。
点击展开。
h2/src/main/org/h2/util/ObjectUtils.java
浏览文件 @
39aa8c14
...
@@ -39,11 +39,11 @@ public class ObjectUtils {
...
@@ -39,11 +39,11 @@ public class ObjectUtils {
* @return the object
* @return the object
*/
*/
public
static
Integer
getInteger
(
int
x
)
{
public
static
Integer
getInteger
(
int
x
)
{
/
*
## Java 1.5 begin ##
/
/
## Java 1.5 begin ##
if
(
true
)
{
if
(
true
)
{
return
Integer
.
valueOf
(
x
);
return
Integer
.
valueOf
(
x
);
}
}
## Java 1.5 end ##*/
//## Java 1.5 end ##
// NOPMD
// NOPMD
return
new
Integer
(
x
);
return
new
Integer
(
x
);
}
}
...
@@ -55,11 +55,11 @@ public class ObjectUtils {
...
@@ -55,11 +55,11 @@ public class ObjectUtils {
* @return the object
* @return the object
*/
*/
public
static
Character
getCharacter
(
char
x
)
{
public
static
Character
getCharacter
(
char
x
)
{
/
*
## Java 1.5 begin ##
/
/
## Java 1.5 begin ##
if
(
true
)
{
if
(
true
)
{
return
Character
.
valueOf
(
x
);
return
Character
.
valueOf
(
x
);
}
}
## Java 1.5 end ##*/
//## Java 1.5 end ##
return
new
Character
(
x
);
return
new
Character
(
x
);
}
}
...
@@ -70,11 +70,11 @@ public class ObjectUtils {
...
@@ -70,11 +70,11 @@ public class ObjectUtils {
* @return the object
* @return the object
*/
*/
public
static
Long
getLong
(
long
x
)
{
public
static
Long
getLong
(
long
x
)
{
/
*
## Java 1.5 begin ##
/
/
## Java 1.5 begin ##
if
(
true
)
{
if
(
true
)
{
return
Long
.
valueOf
(
x
);
return
Long
.
valueOf
(
x
);
}
}
## Java 1.5 end ##*/
//## Java 1.5 end ##
// NOPMD
// NOPMD
return
new
Long
(
x
);
return
new
Long
(
x
);
}
}
...
@@ -86,11 +86,11 @@ public class ObjectUtils {
...
@@ -86,11 +86,11 @@ public class ObjectUtils {
* @return the object
* @return the object
*/
*/
public
static
Short
getShort
(
short
x
)
{
public
static
Short
getShort
(
short
x
)
{
/
*
## Java 1.5 begin ##
/
/
## Java 1.5 begin ##
if
(
true
)
{
if
(
true
)
{
return
Short
.
valueOf
(
x
);
return
Short
.
valueOf
(
x
);
}
}
## Java 1.5 end ##*/
//## Java 1.5 end ##
// NOPMD
// NOPMD
return
new
Short
(
x
);
return
new
Short
(
x
);
}
}
...
@@ -102,11 +102,11 @@ public class ObjectUtils {
...
@@ -102,11 +102,11 @@ public class ObjectUtils {
* @return the object
* @return the object
*/
*/
public
static
Byte
getByte
(
byte
x
)
{
public
static
Byte
getByte
(
byte
x
)
{
/
*
## Java 1.5 begin ##
/
/
## Java 1.5 begin ##
if
(
true
)
{
if
(
true
)
{
return
Byte
.
valueOf
(
x
);
return
Byte
.
valueOf
(
x
);
}
}
## Java 1.5 end ##*/
//## Java 1.5 end ##
// NOPMD
// NOPMD
return
new
Byte
(
x
);
return
new
Byte
(
x
);
}
}
...
@@ -118,11 +118,11 @@ public class ObjectUtils {
...
@@ -118,11 +118,11 @@ public class ObjectUtils {
* @return the object
* @return the object
*/
*/
public
static
Float
getFloat
(
float
x
)
{
public
static
Float
getFloat
(
float
x
)
{
/
*
## Java 1.5 begin ##
/
/
## Java 1.5 begin ##
if
(
true
)
{
if
(
true
)
{
return
Float
.
valueOf
(
x
);
return
Float
.
valueOf
(
x
);
}
}
## Java 1.5 end ##*/
//## Java 1.5 end ##
return
new
Float
(
x
);
return
new
Float
(
x
);
}
}
...
@@ -133,11 +133,11 @@ public class ObjectUtils {
...
@@ -133,11 +133,11 @@ public class ObjectUtils {
* @return the object
* @return the object
*/
*/
public
static
Double
getDouble
(
double
x
)
{
public
static
Double
getDouble
(
double
x
)
{
/
*
## Java 1.5 begin ##
/
/
## Java 1.5 begin ##
if
(
true
)
{
if
(
true
)
{
return
Double
.
valueOf
(
x
);
return
Double
.
valueOf
(
x
);
}
}
## Java 1.5 end ##*/
//## Java 1.5 end ##
return
new
Double
(
x
);
return
new
Double
(
x
);
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论