Skip to content

Commit

Permalink
[Java] Fix map capacity calculation (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
wlukowicz authored Aug 5, 2020
1 parent 13ea427 commit fea7622
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public float loadFactor()
*/
@DoNotSub public int capacity()
{
return entries.length >> 2;
return entries.length >> 1;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public float loadFactor()
*/
@DoNotSub public int capacity()
{
return entries.length >> 2;
return entries.length >> 1;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public int resizeThreshold()
*/
public int capacity()
{
return entries.length >> 2;
return entries.length >> 1;
}

/**
Expand Down

0 comments on commit fea7622

Please sign in to comment.