Skip to content

Commit 01e1dac

Browse files
committed
Migrate to a GitHub Actions build
1 parent 4ebf457 commit 01e1dac

4 files changed

Lines changed: 31 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
name: Java ${{ matrix.java }}
12+
runs-on: ubuntu-latest
13+
container:
14+
image: maven:3-eclipse-temurin-${{ matrix.java }}
15+
strategy:
16+
matrix:
17+
java:
18+
- 25
19+
- 21
20+
- 17
21+
- 11
22+
- 8
23+
steps:
24+
- uses: actions/checkout@v4
25+
- name: Build with Maven
26+
run: mvn clean test jacoco:report coveralls:report

.travis.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/main/java/io/whitfin/siphash/SipHasherContainer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public final class SipHasherContainer {
5959
* @return
6060
* a long value as the output of the hash.
6161
*/
62-
public final long hash(byte[] data) {
62+
public long hash(byte[] data) {
6363
return hash(data, DEFAULT_C, DEFAULT_D);
6464
}
6565

@@ -75,7 +75,7 @@ public final long hash(byte[] data) {
7575
* @return
7676
* a long value as the output of the hash.
7777
*/
78-
public final long hash(byte[] data, int c, int d) {
78+
public long hash(byte[] data, int c, int d) {
7979
return SipHasher.hash(
8080
c, d,
8181
this.v0,

src/main/java/io/whitfin/siphash/SipHasherStream.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public final class SipHasherStream {
103103
* @return
104104
* the same {@link SipHasherStream} for chaining.
105105
*/
106-
public final SipHasherStream update(byte b) {
106+
public SipHasherStream update(byte b) {
107107
this.len++;
108108
this.m |= (((long) b & 0xff) << (this.m_idx++ * 8));
109109
if (this.m_idx < 8) {
@@ -127,7 +127,7 @@ public final SipHasherStream update(byte b) {
127127
* @return
128128
* the same {@link SipHasherStream} for chaining.
129129
*/
130-
public final SipHasherStream update(byte[] bytes) {
130+
public SipHasherStream update(byte[] bytes) {
131131
for (byte b : bytes) {
132132
update(b);
133133
}
@@ -144,7 +144,7 @@ public final SipHasherStream update(byte[] bytes) {
144144
* @return
145145
* the final result of the hash as a long.
146146
*/
147-
public final long digest() {
147+
public long digest() {
148148
byte msgLenMod256 = this.len;
149149

150150
while (this.m_idx < 7) {

0 commit comments

Comments
 (0)