Skip to content

Commit f7e4944

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

5 files changed

Lines changed: 0 additions & 8 deletions

File tree

src/test/java/org/apache/commons/codec/digest/Apr1CryptTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ public void testApr1CryptStrings() {
4141
}
4242

4343
@Test
44-
@SuppressWarnings("deprecation") // TODO remove when Java 7 is minimum and Charsets constants can be replaced
4544
public void testApr1CryptBytes() {
4645
// random salt
4746
final byte[] keyBytes = new byte[] { '!', 'b', 'c', '.' };

src/test/java/org/apache/commons/codec/digest/Md5CryptTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ public void testMd5CryptStrings() {
4444
}
4545

4646
@Test
47-
@SuppressWarnings("deprecation") // TODO remove when Java 7 is minimum and Charsets constants can be replaced
4847
public void testMd5CryptBytes() {
4948
// An empty Bytearray equals an empty String
5049
assertEquals("$1$foo$9mS5ExwgIECGE5YKlD5o91", Crypt.crypt(new byte[0], "$1$foo"));

src/test/java/org/apache/commons/codec/digest/Sha256CryptTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public void testSha256CryptStrings() {
4040
}
4141

4242
@Test
43-
@SuppressWarnings("deprecation") // TODO remove when Java 7 is minimum and Charsets constants can be replaced
4443
public void testSha256CryptBytes() {
4544
// An empty Bytearray equals an empty String
4645
assertEquals("$5$foo$Fq9CX624QIfnCAmlGiPKLlAasdacKCRxZztPoeo7o0B", Crypt.crypt(new byte[0], "$5$foo"));
@@ -51,7 +50,6 @@ public void testSha256CryptBytes() {
5150
}
5251

5352
@Test
54-
@SuppressWarnings("deprecation") // TODO remove when Java 7 is minimum and Charsets constants can be replaced
5553
public void testSha2CryptRounds() {
5654
// minimum rounds?
5755
assertEquals("$5$rounds=1000$abcd$b8MCU4GEeZIekOy5ahQ8EWfT330hvYGVeDYkBxXBva.", Sha2Crypt.sha256Crypt("secret".getBytes(Charsets.UTF_8), "$5$rounds=50$abcd$"));

src/test/java/org/apache/commons/codec/digest/Sha512CryptTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ public void testSha512CryptStrings() {
4141
}
4242

4343
@Test
44-
@SuppressWarnings("deprecation") // TODO remove when Java 7 is minimum and Charsets constants can be replaced
4544
public void testSha512CryptBytes() {
4645
// An empty Bytearray equals an empty String
4746
assertEquals("$6$foo$Nywkte7LPWjaJhWjNeGJN.dFdY3pN1wYlGifyRLYOVlGS9EMSiZaDDe/BGSOYQ327q9.32I4UqQ5odsqvsBLX/", Crypt.crypt(new byte[0], "$6$foo"));
@@ -69,7 +68,6 @@ public void testSha512CryptNullSalt() {
6968
}
7069

7170
@Test
72-
@SuppressWarnings("deprecation") // TODO remove when Java 7 is minimum and Charsets constants can be replaced
7371
public void testSha2CryptRounds() {
7472
// minimum rounds?
7573
assertEquals("$5$rounds=1000$abcd$b8MCU4GEeZIekOy5ahQ8EWfT330hvYGVeDYkBxXBva.", Sha2Crypt.sha256Crypt("secret".getBytes(Charsets.UTF_8), "$5$rounds=50$abcd$"));
@@ -78,7 +76,6 @@ public void testSha2CryptRounds() {
7876
}
7977

8078
@Test(expected = IllegalArgumentException.class)
81-
@SuppressWarnings("deprecation") // TODO remove when Java 7 is minimum and Charsets constants can be replaced
8279
public void testSha2CryptWrongSalt() {
8380
Sha2Crypt.sha512Crypt("secret".getBytes(Charsets.UTF_8), "xx");
8481
}

src/test/java/org/apache/commons/codec/digest/UnixCryptTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ public void testUnixCryptStrings() {
4343
}
4444

4545
@Test
46-
@SuppressWarnings("deprecation") // TODO remove when Java 7 is minimum and Charsets constants can be replaced
4746
public void testUnixCryptBytes() {
4847
// An empty Bytearray equals an empty String
4948
assertEquals("12UFlHxel6uMM", Crypt.crypt(new byte[0], "12"));

0 commit comments

Comments
 (0)