Skip to content

Commit c7846ef

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

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

src/test/java/org/apache/commons/codec/net/QuotedPrintableCodecTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ public void testEncodeNull() throws Exception {
151151
public void testEncodeUrlWithNullBitSet() throws Exception {
152152
final QuotedPrintableCodec qpcodec = new QuotedPrintableCodec();
153153
final String plain = "1+1 = 2";
154-
@SuppressWarnings("deprecation") // TODO remove when Java 7 is minimum and Charsets constants can be replaced
155154
final String encoded = new String(QuotedPrintableCodec.
156155
encodeQuotedPrintable(null, plain.getBytes(Charsets.UTF_8)));
157156
assertEquals("Basic quoted-printable encoding test",
@@ -192,7 +191,6 @@ public void testEncodeObjects() throws Exception {
192191
assertEquals("Basic quoted-printable encoding test",
193192
"1+1 =3D 2", encoded);
194193

195-
@SuppressWarnings("deprecation") // TODO remove when Java 7 is minimum and Charsets constants can be replaced
196194
final byte[] plainBA = plain.getBytes(Charsets.UTF_8);
197195
final byte[] encodedBA = (byte[]) qpcodec.encode((Object) plainBA);
198196
encoded = new String(encodedBA);
@@ -224,7 +222,6 @@ public void testDecodeObjects() throws Exception {
224222
assertEquals("Basic quoted-printable decoding test",
225223
"1+1 = 2", decoded);
226224

227-
@SuppressWarnings("deprecation") // TODO remove when Java 7 is minimum and Charsets constants can be replaced
228225
final byte[] plainBA = plain.getBytes(Charsets.UTF_8);
229226
final byte[] decodedBA = (byte[]) qpcodec.decode((Object) plainBA);
230227
decoded = new String(decodedBA);

src/test/java/org/apache/commons/codec/net/URLCodecTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ public void testEncodeNull() throws Exception {
188188
public void testEncodeUrlWithNullBitSet() throws Exception {
189189
final URLCodec urlCodec = new URLCodec();
190190
final String plain = "Hello there!";
191-
@SuppressWarnings("deprecation") // TODO remove when Java 7 is minimum and Charsets constants can be replaced
192191
final String encoded = new String( URLCodec.encodeUrl(null, plain.getBytes(Charsets.UTF_8)));
193192
assertEquals("Basic URL encoding test",
194193
"Hello+there%21", encoded);
@@ -228,7 +227,6 @@ public void testEncodeObjects() throws Exception {
228227
assertEquals("Basic URL encoding test",
229228
"Hello+there%21", encoded);
230229

231-
@SuppressWarnings("deprecation") // TODO remove when Java 7 is minimum and Charsets constants can be replaced
232230
final byte[] plainBA = plain.getBytes(Charsets.UTF_8);
233231
final byte[] encodedBA = (byte[]) urlCodec.encode((Object) plainBA);
234232
encoded = new String(encodedBA);
@@ -275,7 +273,6 @@ public void testDecodeObjects() throws Exception {
275273
assertEquals("Basic URL decoding test",
276274
"Hello there!", decoded);
277275

278-
@SuppressWarnings("deprecation") // TODO remove when Java 7 is minimum and Charsets constants can be replaced
279276
final byte[] plainBA = plain.getBytes(Charsets.UTF_8);
280277
final byte[] decodedBA = (byte[]) urlCodec.decode((Object) plainBA);
281278
decoded = new String(decodedBA);

0 commit comments

Comments
 (0)