File tree Expand file tree Collapse file tree
src/main/java/io/whitfin/siphash Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Load Diff This file was deleted.
Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments