RFR: CODETOOLS-7902237: Fixing raw use of parameterized class
Jonathan Gibbons
jonathan.gibbons at oracle.com
Wed Jul 25 16:48:04 UTC 2018
On 7/25/18 6:17 AM, dmitry.bessonov at oracle.com wrote:
>
>
> On 24/07/2018 23:18, Jonathan Gibbons wrote:
>>
>>
>> On 07/24/2018 07:48 AM, dmitry.bessonov at oracle.com wrote:
>>> Please review the following fix related to "raw use of parameterized
>>> class" warning:
>>>
>>> JBS: https://bugs.openjdk.java.net/browse/CODETOOLS-7902237
>>> Webrev: http://cr.openjdk.java.net/~dbessono/7902237/webrev/
>>>
>>> dmitry
>>
>> PreferencesPane
>>
>> 496
>> 497 public void putAll(Map<? extends String, ?
>> extends String> m) {
>>
>> "? extends String" seems very strange
>
> It looks strange. It was enforced when overriding
> Map::putAll(Map<? extends K, ? extends V> m)
Yeah, I wondered if it was something like that.
This might be worth raising with the JLS/javac folk.
-- Jon
>
>
> dmitry
>
>>
>> -- Jon
>>
More information about the jtharness-dev
mailing list