db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bpendle...@apache.org
Subject svn commit: r1743093 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DatabaseMetaDataTest.java
Date Tue, 10 May 2016 01:12:51 GMT
Author: bpendleton
Date: Tue May 10 01:12:51 2016
New Revision: 1743093

URL: http://svn.apache.org/viewvc?rev=1743093&view=rev
Log:
DERBY-6856: Make it possible to build Derby using JDK 9

As a follow-up to revision 1742756, and a slight improvement to it,
use Integer.valueOf(Types.BOOLEAN) rather than new Integer(Types.BOOLEAN)
which avoids an unnecessary object allocation.


Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DatabaseMetaDataTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DatabaseMetaDataTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DatabaseMetaDataTest.java?rev=1743093&r1=1743092&r2=1743093&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DatabaseMetaDataTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DatabaseMetaDataTest.java
Tue May 10 01:12:51 2016
@@ -2325,7 +2325,7 @@ public class DatabaseMetaDataTest extend
         // DERBY-4946: Boolean isn't supported if DB is soft-upgraded from
         // pre-10.7 version
         if (!booleanSupported) {
-            supportedTypes.remove(new Integer(Types.BOOLEAN));
+            supportedTypes.remove(Integer.valueOf(Types.BOOLEAN));
         }
 
         // Rows are returned from getTypeInfo in order of



Mime
View raw message