Skip to content

Commit

Permalink
Tell the compiler static values are final constants
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach committed Jun 4, 2024
1 parent 68d9306 commit 1dbbae1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@

package org.enso.interpreter.arrow.runtime;

class RoundingUtil {
final class RoundingUtil {

/** The mask for rounding an integer to a multiple of 8. (i.e. clear the lowest 3 bits) */
static int ROUND_8_MASK_INT = 0xFFFFFFF8;
static final int ROUND_8_MASK_INT = 0xFFFFFFF8;

/** The mask for rounding a long integer to a multiple of 8. (i.e. clear the lowest 3 bits) */
static long ROUND_8_MASK_LONG = 0xFFFFFFFFFFFFFFF8L;
static final long ROUND_8_MASK_LONG = 0xFFFFFFFFFFFFFFF8L;

/** The number of bits to shift for dividing by 8. */
static int DIVIDE_BY_8_SHIFT_BITS = 3;
static final int DIVIDE_BY_8_SHIFT_BITS = 3;

private RoundingUtil() {}

Expand Down

0 comments on commit 1dbbae1

Please sign in to comment.