Remove recundant type casting
This commit is contained in:
parent
f4585b9f53
commit
6453b71ab0
@ -725,7 +725,7 @@ public class HttpPostRequestEncoder implements ChunkedInput {
|
||||
}
|
||||
ChannelBuffer buffer;
|
||||
if (currentData instanceof InternalAttribute) {
|
||||
String internal = ((InternalAttribute) currentData).toString();
|
||||
String internal = currentData.toString();
|
||||
byte[] bytes;
|
||||
try {
|
||||
bytes = internal.getBytes("ASCII");
|
||||
|
@ -31,7 +31,7 @@ public class StringUtilTest {
|
||||
|
||||
@Test
|
||||
public void stripControlCharactersNull() {
|
||||
assertNull(StringUtil.stripControlCharacters((String) null));
|
||||
assertNull(StringUtil.stripControlCharacters(null));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
Reference in New Issue
Block a user