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
a975f42d6e
commit
7c0662007d
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user