db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Pendleton <bpendleton.de...@gmail.com>
Subject Re: svn commit: r1742756 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DatabaseMetaDataTest.java
Date Tue, 10 May 2016 01:13:53 GMT
>> +            supportedTypes.remove(new Integer(Types.BOOLEAN));
>
>    supportedTypes.remove(Integer.valueOf(Types.BOOLEAN));
>
> would have the additional benefits of removing the warning on JDK 9 and
> using the internal cache of Integer objects to avoid allocation, while
> still picking the correct overload of List.remove().

Indeed, a simple and useful improvement. Thanks!

bryan



Mime
View raw message