Skip to content

Commit 295ba32

Browse files
Liyixin95OlegDokuka
authored andcommitted
add @OverRide on override method (#689)
Signed-off-by: Administrator <[email protected]>
1 parent f3c6650 commit 295ba32

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

rsocket-core/src/main/java/io/rsocket/ConnectionSetupPayload.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,10 @@ public ConnectionSetupPayload retain(int increment) {
6161
return this;
6262
}
6363

64+
@Override
6465
public abstract ConnectionSetupPayload touch();
6566

67+
@Override
6668
public abstract ConnectionSetupPayload touch(Object hint);
6769

6870
private static final class DefaultConnectionSetupPayload extends ConnectionSetupPayload {

rsocket-core/src/main/java/io/rsocket/buffer/Tuple2ByteBuf.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class Tuple2ByteBuf extends AbstractTupleByteBuf {
4444
this.freed = false;
4545
}
4646

47+
@Override
4748
long calculateRelativeIndex(int index) {
4849
checkIndex(index, 0);
4950

@@ -60,6 +61,7 @@ long calculateRelativeIndex(int index) {
6061
return relativeIndex | mask;
6162
}
6263

64+
@Override
6365
ByteBuf getPart(int index) {
6466
long ri = calculateRelativeIndex(index);
6567
switch ((int) ((ri & MASK) >>> 32L)) {

rsocket-core/src/main/java/io/rsocket/buffer/Tuple3ByteBuf.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public boolean isDirect() {
5757
return one.isDirect() && two.isDirect() && three.isDirect();
5858
}
5959

60+
@Override
6061
public long calculateRelativeIndex(int index) {
6162
checkIndex(index, 0);
6263
long relativeIndex;
@@ -75,6 +76,7 @@ public long calculateRelativeIndex(int index) {
7576
return relativeIndex | mask;
7677
}
7778

79+
@Override
7880
public ByteBuf getPart(int index) {
7981
long ri = calculateRelativeIndex(index);
8082
switch ((int) ((ri & MASK) >>> 32L)) {

0 commit comments

Comments
 (0)