diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-12 15:09:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-19 14:57:17 +0200 |
commit | ff0ad0493ee1729c726587f667761b04101d774c (patch) | |
tree | 8c0f97e8740fbdb2ed0cdbfc5d99d82cae8f7df6 /connectivity/qa | |
parent | java: use Boolean.valueOf instead of instantiating Boolean objects (diff) | |
download | core-ff0ad0493ee1729c726587f667761b04101d774c.tar.gz core-ff0ad0493ee1729c726587f667761b04101d774c.zip |
java: use 'Integer.valueOf' instead of 'new Integer'
Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
Diffstat (limited to 'connectivity/qa')
-rw-r--r-- | connectivity/qa/connectivity/tools/HsqlTableDescriptor.java | 2 | ||||
-rw-r--r-- | connectivity/qa/connectivity/tools/RowSet.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/qa/connectivity/tools/HsqlTableDescriptor.java b/connectivity/qa/connectivity/tools/HsqlTableDescriptor.java index 73f0a8d5bbe7..992619b7c675 100644 --- a/connectivity/qa/connectivity/tools/HsqlTableDescriptor.java +++ b/connectivity/qa/connectivity/tools/HsqlTableDescriptor.java @@ -79,7 +79,7 @@ public class HsqlTableDescriptor try { columnDesc.setPropertyValue( "Name", myColumns[i].getName() ); - columnDesc.setPropertyValue( "IsNullable", new Integer( myColumns[i].isRequired() ? ColumnValue.NO_NULLS : ColumnValue.NULLABLE) ); + columnDesc.setPropertyValue( "IsNullable", Integer.valueOf( myColumns[i].isRequired() ? ColumnValue.NO_NULLS : ColumnValue.NULLABLE) ); columnDesc.setPropertyValue( "TypeName", myColumns[i].getTypeName() ); if ( myColumns[i].isPrimaryKey() || myColumns[i].isForeignKey() ) // not yet implemented diff --git a/connectivity/qa/connectivity/tools/RowSet.java b/connectivity/qa/connectivity/tools/RowSet.java index 40c07c7968d1..e5b2545c2c53 100644 --- a/connectivity/qa/connectivity/tools/RowSet.java +++ b/connectivity/qa/connectivity/tools/RowSet.java @@ -50,7 +50,7 @@ public class RowSet implements XRowSet, XRow { m_rowSetProps = UnoRuntime.queryInterface( XPropertySet.class, _orb.createInstance( "com.sun.star.sdb.RowSet" ) ); m_rowSetProps.setPropertyValue( "DataSourceName", _dataSource ); - m_rowSetProps.setPropertyValue( "CommandType", new Integer( _commandType ) ); + m_rowSetProps.setPropertyValue( "CommandType", Integer.valueOf( _commandType ) ); m_rowSetProps.setPropertyValue( "Command", _command ); m_rowSet = UnoRuntime.queryInterface( XRowSet.class, m_rowSetProps ); |