Skip to content

Commit 665e794

Browse files
committed
fixed errors reported by Error Prone in commit 72797a4
1 parent 52f686b commit 665e794

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

flatlaf-jide-oss/src/main/java/com/formdev/flatlaf/jideoss/ui/FlatJideTabbedPaneUI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ protected void paintContentBorder( Graphics g, int tabPlacement, int selectedInd
626626
path.append( gap, false );
627627

628628
// fill gap with the tab's background colour
629-
Color bg = getSelectedTabBackground( tabPlacement, selectedIndex );
629+
Color bg = getSelectedTabBackground( selectedIndex );
630630
g.setColor( FlatUIUtils.deriveColor( bg, _tabPane.getBackground() ) );
631631
((Graphics2D) g).fill( gap );
632632
}
@@ -786,7 +786,7 @@ private void paintCardTabSelection( Graphics g, int tabPlacement, int x, int y,
786786
}
787787
}
788788

789-
private Color getSelectedTabBackground( int tabPlacement, int tabIndex ) {
789+
private Color getSelectedTabBackground( int tabIndex ) {
790790
boolean enabled = _tabPane.isEnabled();
791791
if( enabled && FlatUIUtils.isPermanentFocusOwner( _tabPane ) && focusColor != null )
792792
return focusColor;

0 commit comments

Comments
 (0)