Suppress deprecation warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388058 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
20295a04b9
commit
d7e8948727
|
@ -48,6 +48,7 @@ public class CharUtilsTest {
|
|||
assertFalse(Modifier.isFinal(BooleanUtils.class.getModifiers()));
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation") // intentional test of deprecated method
|
||||
@Test
|
||||
public void testToCharacterObject_char() {
|
||||
assertEquals(new Character('a'), CharUtils.toCharacterObject('a'));
|
||||
|
@ -67,6 +68,7 @@ public class CharUtilsTest {
|
|||
assertEquals(i, ch.charValue());
|
||||
assertEquals(i, ch2.charValue());
|
||||
}
|
||||
assertSame(CharUtils.toCharacterObject("a"), CharUtils.toCharacterObject('a'));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -76,7 +78,6 @@ public class CharUtilsTest {
|
|||
assertEquals(new Character('a'), CharUtils.toCharacterObject("a"));
|
||||
assertEquals(new Character('a'), CharUtils.toCharacterObject("abc"));
|
||||
assertSame(CharUtils.toCharacterObject("a"), CharUtils.toCharacterObject("a"));
|
||||
assertSame(CharUtils.toCharacterObject("a"), CharUtils.toCharacterObject('a'));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
@ -1228,6 +1228,7 @@ public class StringUtilsTest {
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation") // intentional test of deprecated method
|
||||
@Test
|
||||
public void testChomp() {
|
||||
|
||||
|
|
Loading…
Reference in New Issue