Skip to content

Commit d54633e

Browse files
liugddxkun-song
authored andcommitted
Remove unnecessary null check in conjunction with instanceof
1 parent 72fe93b commit d54633e

File tree

1 file changed

+1
-1
lines changed
  • dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/transport

1 file changed

+1
-1
lines changed

dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/transport/DecodeHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public void received(Channel channel, Object message) throws RemotingException {
5252
}
5353

5454
private void decode(Object message) {
55-
if (message != null && message instanceof Decodeable) {
55+
if (message instanceof Decodeable) {
5656
try {
5757
((Decodeable) message).decode();
5858
if (log.isDebugEnabled()) {

0 commit comments

Comments
 (0)