Fix animal sniffer, Travis CI, and javadocs issues
This commit is contained in:
parent
cec45f826f
commit
6234fa132f
|
@ -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
|
||||
|
|
|
@ -204,7 +204,7 @@ public class ListIteratorWrapper<E> implements ResettableListIterator<E> {
|
|||
|
||||
/**
|
||||
* 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}
|
||||
*/
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
@ -80,7 +80,7 @@ public class DynamicHasherBuilderTest {
|
|||
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);
|
||||
|
||||
|
@ -96,7 +96,7 @@ public class DynamicHasherBuilderTest {
|
|||
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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue