<AWT Dev> [9] Review Request: 8039567 Duplicated code in DataTransferer
Petr Pchelko
petr.pchelko at oracle.com
Fri Apr 18 07:04:02 UTC 2014
Hello,
Could you please review the updated version:
http://cr.openjdk.java.net/~pchelko/9/8039567/webrev.01/
Splited the long line.
Previously I didn’t add a couple of files into the webrev. Adding them now.
With best regards. Petr.
On Apr 17, 2014, at 7:44 PM, Sergey Bylokhov <Sergey.Bylokhov at oracle.com> wrote:
> Hi, Petr.
> The fix looks good. But can you split the long lines in the DataTransferer.java, it seems it has right margin = 80.
> On 4/17/14 1:00 PM, Petr Pchelko wrote:
>> Hello,
>>
>> Could I get a second review on this.
>>
>> With best regards. Petr.
>>
>> On 09.04.2014, at 18:57, Alexander Zvegintsev <alexander.zvegintsev at oracle.com> wrote:
>>
>>> Hi Petr,
>>>
>>> the fix looks good to me.
>>>
>>> Thanks,
>>>
>>> Alexander.
>>>
>>> On 04/09/2014 06:27 PM, Petr Pchelko wrote:
>>>> Hello AWT team.
>>>>
>>>> Please review a simple cleanup fix for the issue:
>>>> https://bugs.openjdk.java.net/browse/JDK-8039567
>>>> The fix is available here:
>>>> http://cr.openjdk.java.net/~pchelko/9/8039567/webrev/
>>>>
>>>> 1. The getBestCharsetForTextFormat is duplicated 3 times in the code.
>>>> 2. Caching of the default Charset in DataTransferer does not make sense as it's already cached in the Charset class itself.
>>>> Adding more references to the nio.Charset is not a problem since it's used in this class anyway and we cannot break this
>>>> dependency.
>>>>
>>>> With best regards. Petr.
>
>
> --
> Best regards, Sergey.
>
More information about the awt-dev
mailing list