You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by bp...@apache.org on 2016/05/10 01:12:51 UTC

svn commit: r1743093 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DatabaseMetaDataTest.java

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