<Swing Dev> RFR: 8263496: MetalHighContrastTheme.getControlHighlight cleanup

Alexander Zvegintsev azvegint at openjdk.java.net
Fri Mar 26 12:05:26 UTC 2021


On Tue, 23 Mar 2021 10:26:42 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> SonarCloud reports the potential issue with MetalHighContrastTheme.getControlHighlight where `controlHighlight ` field is not used and the getControlHighlight() uses secondary field.
> public ColorUIResource getControlHighlight() {
>         // This was super.getSecondary3();
>         return secondary2;
>     } 
> Removed the unused field.

Marked as reviewed by azvegint (Reviewer).

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

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


More information about the swing-dev mailing list