Skip to content

Commit

Permalink
Add final modifiers to some method variables that were missing
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhahmann committed Nov 7, 2023
1 parent d0a8190 commit 3c92578
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public CustomizedClusterComponent(
init( cluster, initPoint, clusterHeight, classification );
}

private void init( Cluster cluster, VCoord initPoint, double clusterHeight, Classification< T > classification )
private void init( final Cluster cluster, final VCoord initPoint, final double clusterHeight, final Classification< T > classification )
{
Map< String, T > leafMapping = classification.getLeafMapping();
if ( leafMapping != null && cluster.isLeaf() && leafMapping.containsKey( cluster.getName() ) )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private static class ModelMetrics

private final double hModel;

private ModelMetrics( double xModelOrigin, double yModelOrigin, double wModel, double hModel )
private ModelMetrics( final double xModelOrigin, final double yModelOrigin, final double wModel, final double hModel )
{
this.xModelOrigin = xModelOrigin;
this.yModelOrigin = yModelOrigin;
Expand All @@ -200,7 +200,7 @@ class DisplayMetrics

private final int yOffset;

DisplayMetrics( int componentWidth, int componentHeight, Graphics2D g2 )
DisplayMetrics( final int componentWidth, final int componentHeight, final Graphics2D g2 )
{
int nameOffset = 0;
int scaleBarHeight = 0;
Expand Down Expand Up @@ -239,7 +239,7 @@ class DisplayMetrics
* @param number the number to count the zeros after the decimal point
* @return the number of zeros after the decimal point of the given number before the first non-zero digit
*/
static int countZerosAfterDecimalPoint( double number )
static int countZerosAfterDecimalPoint( final double number )
{
return ( int ) Math.max( 0, -Math.floor( Math.log10( Math.abs( number ) ) + 1 ) );
}
Expand All @@ -250,7 +250,7 @@ int getDisplayXCoordinate( final double modelXCoordinate, final DisplayMetrics d
return displayMetrics.xDisplayOrigin + displayMetrics.widthDisplay - ( int ) xDisplayCoordinate;
}

static int getScaleBarHeight( Graphics g )
static int getScaleBarHeight( final Graphics g )
{
return g.getFontMetrics().getHeight() + 2 * SCALE_PADDING + SCALE_TICK_LABEL_PADDING;
}
Expand Down Expand Up @@ -326,7 +326,7 @@ private double getTickModelInterval()
return scaleValueInterval;
}

private void paint( Graphics2D g2 )
private void paint( final Graphics2D g2 )
{
g2.draw( line );
for ( Pair< Line2D, String > tick : ticks )
Expand Down

0 comments on commit 3c92578

Please sign in to comment.