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 GitHub
parent 8d815d55f9
commit 6621e4a60f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;