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:
skyguard1 2021-06-02 14:41:17 +08:00 committed by Norman Maurer
parent a975f42d6e
commit 7c0662007d

View File

@ -407,6 +407,8 @@ public abstract class HttpObjectDecoder extends ByteToMessageDecoder {
} }
break; break;
} }
default:
break;
} }
} }
@ -492,6 +494,8 @@ public abstract class HttpObjectDecoder extends ByteToMessageDecoder {
switch (code) { switch (code) {
case 204: case 304: case 204: case 304:
return true; return true;
default:
return false;
} }
} }
return false; return false;