Skip to content

Commit

Permalink
optimize : All Override methods must be annotated with @OverRide (#1910)
Browse files Browse the repository at this point in the history
  • Loading branch information
EZKAYOTWJPRKXWCUYEEB authored and zjinlei committed Nov 19, 2019
1 parent c2de2c1 commit c088ef0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ int lengthFieldLength, FullLength is int(4B). so values is 4
super(maxFrameLength, 3, 4, -7, 0);
}

@Override
protected Object decode(ChannelHandlerContext ctx, ByteBuf in) throws Exception {
Object decoded = super.decode(ctx, in);
if (decoded instanceof ByteBuf) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public void setRetry(Retry retry) {
this.retry = retry;
}

@Override
public List<ExceptionMatch> getCatches() {
return catches;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public String getStartState() {
return startState;
}

@Override
public void setStartState(String startState) {
this.startState = startState;
}
Expand Down Expand Up @@ -164,6 +165,7 @@ public String getContent() {
return content;
}

@Override
public void setContent(String content) {
this.content = content;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ public long branchRegister(String resourceId, String clientId, String xid, Strin
lockKeys);
}

@Override
public void branchReport(String xid, long branchId, BranchStatus status, String applicationData)
throws TransactionException {
DefaultResourceManager.get().branchReport(BranchType.SAGA, xid, branchId, status, applicationData);
Expand Down

0 comments on commit c088ef0

Please sign in to comment.