Add default block in HttpObjectDecoder (#11342)
Motivation: There should always be a default in switch blocks. Modification: Add default Result: Code cleanup. Signed-off-by: xingrufei <xingrufei@sogou-inc.com>
This commit is contained in:
parent
8d815d55f9
commit
6621e4a60f
@ -422,6 +422,8 @@ public abstract class HttpObjectDecoder extends ByteToMessageDecoder {
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@ -507,6 +509,8 @@ public abstract class HttpObjectDecoder extends ByteToMessageDecoder {
|
||||
switch (code) {
|
||||
case 204: case 304:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user