Skip to content

Commit

Permalink
Merge branch 'pr-178'
Browse files Browse the repository at this point in the history
This closes #178
  • Loading branch information
kinow committed Aug 28, 2020
2 parents cec45f8 + 6234fa1 commit 679d515
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ jdk:
- openjdk-ea

script:
- mvn -V --no-transfer-progress
- mvn -V
# japicmp requires a package
- mvn -V jar:jar japicmp:cmp -P japicmp --no-transfer-progress
- mvn -V jar:jar japicmp:cmp -P japicmp

after_success:
# jacoco will run in the main script. Include the profile to submit to coveralls.
- mvn -V jacoco:report coveralls:report -Ptravis-jacoco --no-transfer-progress
- mvn -V jacoco:report coveralls:report -Ptravis-jacoco
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public int previousIndex() {

/**
* Removes the last element that was returned by {@link #next()} or {@link #previous()} from the underlying collection.
* This call can only be made once per call to {@code next} or {@code previous} and only if {@link #add()} was not called in between.
* This call can only be made once per call to {@code next} or {@code previous} and only if {@link #add(Object)} was not called in between.
*
* @throws IllegalStateException if {@code next} or {@code previous} have not been called before, or if {@code remove} or {@code add} have been called after the last call to {@code next} or {@code previous}
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class DynamicHasherBuilderTest {
public void buildTest_byteArray() {
final byte[] bytes = testString.getBytes();
final DynamicHasher hasher = builder.with(bytes).build();
final int expected = (int) Math.floorMod(hf.apply(bytes, 0), shape.getNumberOfBits());
final int expected = (int) Math.floorMod((long) hf.apply(bytes, 0), (long) shape.getNumberOfBits());

final OfInt iter = hasher.iterator(shape);

Expand Down Expand Up @@ -80,7 +80,7 @@ public void buildTest_Empty() {
public void buildTest_String() {
final byte[] bytes = testString.getBytes(StandardCharsets.UTF_8);
final DynamicHasher hasher = builder.with(testString, StandardCharsets.UTF_8).build();
final int expected = (int) Math.floorMod(hf.apply(bytes, 0), shape.getNumberOfBits());
final int expected = (int) Math.floorMod((long) hf.apply(bytes, 0), (long) shape.getNumberOfBits());

final OfInt iter = hasher.iterator(shape);

Expand All @@ -96,7 +96,7 @@ public void buildTest_String() {
public void buildTest_UnencodedString() {
final byte[] bytes = testString.getBytes(StandardCharsets.UTF_16LE);
final DynamicHasher hasher = builder.withUnencoded(testString).build();
final int expected = (int) Math.floorMod(hf.apply(bytes, 0), shape.getNumberOfBits());
final int expected = (int) Math.floorMod((long) hf.apply(bytes, 0), (long) shape.getNumberOfBits());

final OfInt iter = hasher.iterator(shape);

Expand Down

0 comments on commit 679d515

Please sign in to comment.