Remove recundant type casting

This commit is contained in:
Trustin Lee 2012-11-10 02:13:33 +09:00
parent f4585b9f53
commit 6453b71ab0
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -31,7 +31,7 @@ public class StringUtilTest {
@Test
public void stripControlCharactersNull() {
assertNull(StringUtil.stripControlCharacters((String) null));
assertNull(StringUtil.stripControlCharacters(null));
}
@Test