Re: RFR[8243655]: 'Map.replace javadoc code snippet typo'

2020-06-05 Thread Pavel Rappo
Extra points would be to substitute the resulting snippet for the actual implementation to see if it compiles and satisfies the tests. For example, like this: default boolean replace(K key, V oldValue, V newValue) { Map map = this; // synthetic line if (map.containsKey(key) && Objects.

Re: RFR[8243655]: 'Map.replace javadoc code snippet typo'

2020-06-05 Thread Martin Buchholz
Looks good to me On Fri, Jun 5, 2020 at 8:20 AM Conor Cleary wrote: > > Hi, > > Could someone please take a look at my webrev for JDK-8243655 > 'Map.replace javadoc code snippet typo'? > > This fix addresses a typo in the javadoc for Map.replace(K, V, V) in the > default implementation code. The

Re: RFR[8243655]: 'Map.replace javadoc code snippet typo'

2020-06-05 Thread Jim Laskey
+1 > On Jun 5, 2020, at 12:20 PM, Conor Cleary wrote: > > Hi, > > Could someone please take a look at my webrev for JDK-8243655 'Map.replace > javadoc code snippet typo'? > > This fix addresses a typo in the javadoc for Map.replace(K, V, V) in the > default implementation code. The parameter

RFR[8243655]: 'Map.replace javadoc code snippet typo'

2020-06-05 Thread Conor Cleary
Hi, Could someone please take a look at my webrev for JDK-8243655 'Map.replace javadoc code snippet typo'? This fix addresses a typo in the javadoc for Map.replace(K, V, V) in the default implementation code. The parameter 'value' in the conditional block is changed to 'oldValue' to reflect