Tree: removed unused method parameter; reported by Error Prone in commit d388158de7
Some checks failed
CI / build (11) (push) Has been cancelled
CI / build-on (17, ) (push) Has been cancelled
CI / build-on (21, ) (push) Has been cancelled
CI / build-on (23, ) (push) Has been cancelled
CI / build-on (8, ) (push) Has been cancelled
CI / snapshot (push) Has been cancelled
CI / release (push) Has been cancelled

This commit is contained in:
Karl Tauber
2025-09-08 14:11:16 +02:00
parent 2ac7234c32
commit 1ed7aeaa45

View File

@@ -659,7 +659,7 @@ public class FlatTreeUI
? ((DefaultTreeCellRenderer)rendererComponent).getBackgroundSelectionColor() ? ((DefaultTreeCellRenderer)rendererComponent).getBackgroundSelectionColor()
: (hasFocus ? selectionBackground : selectionInactiveBackground); : (hasFocus ? selectionBackground : selectionInactiveBackground);
paintRowSelection( g, selectionColor, rendererComponent, bounds, row, hasFocus, false ); paintRowSelection( g, selectionColor, rendererComponent, bounds, row, false );
} else { } else {
// paint cell background if DefaultTreeCellRenderer.getBackgroundNonSelectionColor() is set // paint cell background if DefaultTreeCellRenderer.getBackgroundNonSelectionColor() is set
if( rendererComponent instanceof DefaultTreeCellRenderer ) { if( rendererComponent instanceof DefaultTreeCellRenderer ) {
@@ -678,7 +678,7 @@ public class FlatTreeUI
// (this needs to be an extra step for rounded selection) // (this needs to be an extra step for rounded selection)
if( isDropRow && isPaintSelection() ) { if( isDropRow && isPaintSelection() ) {
paintRowSelection( g, UIManager.getColor( "Tree.dropCellBackground" ), paintRowSelection( g, UIManager.getColor( "Tree.dropCellBackground" ),
rendererComponent, bounds, row, hasFocus, true ); rendererComponent, bounds, row, true );
} }
// paint renderer // paint renderer
@@ -692,7 +692,7 @@ public class FlatTreeUI
} }
private void paintRowSelection( Graphics g, Color color, Component rendererComponent, private void paintRowSelection( Graphics g, Color color, Component rendererComponent,
Rectangle bounds, int row, boolean hasFocus, boolean paintDropSelection ) Rectangle bounds, int row, boolean paintDropSelection )
{ {
// set selection color // set selection color
Color oldColor = g.getColor(); Color oldColor = g.getColor();