Skip to content

Commit 7b67f1b

Browse files
committed
Unnecessary now
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1744166 13f79535-47bb-0310-9956-ffa450edef68
1 parent c7846ef commit 7b67f1b

6 files changed

Lines changed: 2 additions & 8 deletions

File tree

src/test/java/org/apache/commons/codec/CharsetsTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
*
2828
* @version $Id: CharEncodingTest.java 1298985 2012-03-09 19:12:49Z ggregory $
2929
*/
30-
@SuppressWarnings("deprecation") // TODO remove when Java 7 is minimum and Charsets constants can be replaced
3130
public class CharsetsTest {
3231

3332
@Test

src/test/java/org/apache/commons/codec/binary/Base32Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
public class Base32Test {
3333

34-
@SuppressWarnings("deprecation") // TODO remove when Java 7 is minimum and Charsets constants can be replaced
34+
3535
private static final Charset CHARSET_UTF8 = Charsets.UTF_8;
3636

3737
private static final String [][] BASE32_TEST_CASES = { // RFC 4648

src/test/java/org/apache/commons/codec/binary/Base64Codec13Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ public void testStaticDecodeChunked() throws DecoderException {
504504
}
505505
}
506506

507-
@SuppressWarnings("deprecation") // TODO remove when Java 7 is minimum and Charsets constants can be replaced
507+
508508
private static byte[] utf8(final String s) {
509509

510510
// We would use commons-codec-1.4.jar own utility method for this, but we

src/test/java/org/apache/commons/codec/binary/Base64Test.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@
4343
*/
4444
public class Base64Test {
4545

46-
@SuppressWarnings("deprecation") // TODO remove when Java 7 is minimum and
47-
// Charsets constants can be replaced
4846
private static final Charset CHARSET_UTF8 = Charsets.UTF_8;
4947

5048
private final Random random = new Random();

src/test/java/org/apache/commons/codec/binary/BinaryCodecTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
*/
3737
public class BinaryCodecTest {
3838

39-
@SuppressWarnings("deprecation") // TODO remove when Java 7 is minimum and Charsets constants can be replaced
4039
private static final Charset CHARSET_UTF8 = Charsets.UTF_8;
4140

4241
/** mask with bit zero based index 0 raised */

src/test/java/org/apache/commons/codec/binary/HexTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,13 +448,11 @@ public void testEncodeStringEmpty() throws EncoderException {
448448
}
449449

450450
@Test
451-
@SuppressWarnings("deprecation") // TODO remove when Java 7 is minimum and Charsets constants can be replaced
452451
public void testGetCharset() throws UnsupportedEncodingException, DecoderException {
453452
Assert.assertEquals(Charsets.UTF_8, new Hex(Charsets.UTF_8).getCharset());
454453
}
455454

456455
@Test
457-
@SuppressWarnings("deprecation") // TODO remove when Java 7 is minimum and Charsets constants can be replaced
458456
public void testGetCharsetName() throws UnsupportedEncodingException, DecoderException {
459457
Assert.assertEquals(Charsets.UTF_8.name(), new Hex(Charsets.UTF_8).getCharsetName());
460458
}

0 commit comments

Comments
 (0)