Skip to content

Commit

Permalink
8253791: Issue with useAppleColor check in CSystemColors.m
Browse files Browse the repository at this point in the history
Reviewed-by: phh, lucy, serb
  • Loading branch information
MBaesken committed Sep 30, 2020
1 parent ac02afe commit 4622a18
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -126,7 +126,7 @@ + (void)reloadColors {
+ (NSColor*)getColor:(NSUInteger)colorIndex useAppleColor:(BOOL)useAppleColor {
NSColor* result = nil;

if (colorIndex < (useAppleColor) ? sun_lwawt_macosx_LWCToolkit_NUM_APPLE_COLORS : java_awt_SystemColor_NUM_COLORS) {
if (colorIndex < ((useAppleColor) ? sun_lwawt_macosx_LWCToolkit_NUM_APPLE_COLORS : java_awt_SystemColor_NUM_COLORS)) {
result = (useAppleColor ? appleColors : sColors)[colorIndex];
}
else {
Expand Down

1 comment on commit 4622a18

@bridgekeeper
Copy link

@bridgekeeper bridgekeeper bot commented on 4622a18 Sep 30, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.