Skip to content

Commit 676cf7c

Browse files
committed
Consistency: use Math.max
1 parent d097e7b commit 676cf7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

class-match/src/main/java/datadog/instrument/classmatch/InternalNames.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ final class InternalNames extends AbstractSet<String> {
3232
*/
3333
InternalNames(Collection<String> types) {
3434
// attempt to hash types into a table with ~75% load factor
35-
int tableSize = Integer.max(8, types.size() * 4 / 3) - 1;
35+
int tableSize = Math.max(8, types.size() * 4 / 3) - 1;
3636
int slotMask = -1 >>> Integer.numberOfLeadingZeros(tableSize);
3737
String[] table = new String[slotMask + 1];
3838
Iterator<String> itr = types.iterator();

0 commit comments

Comments
 (0)