RFR: 8263979: Cleanup duplicate check in Unicode.contains

Pavel Rappo prappo at openjdk.java.net
Mon Mar 22 16:02:37 UTC 2021


On Mon, 22 Mar 2021 15:44:16 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> SonarCloud reports an easy problem in Unicode.contains:
>  Correct one of the identical sub-expressions on both sides of operator "||"

IntelliJ IDEA also reports this problem:

Duplicate condition 'cs.name().equals("Big5-HKSCS")' 

Looks good to me.

-------------

PR: https://git.openjdk.java.net/jdk/pull/3122


More information about the nio-dev mailing list