mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8217820: Useless cast in ECUtil.java
Reviewed-by: jnimeh
This commit is contained in:
parent
d6a75a0f86
commit
0ea0aea6c2
1 changed files with 1 additions and 2 deletions
|
@ -31,7 +31,6 @@ import java.security.*;
|
|||
import java.security.interfaces.*;
|
||||
import java.security.spec.*;
|
||||
import java.util.Arrays;
|
||||
import sun.security.x509.X509Key;
|
||||
|
||||
public class ECUtil {
|
||||
|
||||
|
@ -103,7 +102,7 @@ public class ECUtil {
|
|||
ECParameterSpec params) throws InvalidKeySpecException {
|
||||
KeyFactory keyFactory = getKeyFactory();
|
||||
ECPublicKeySpec keySpec = new ECPublicKeySpec(w, params);
|
||||
X509Key key = (X509Key)keyFactory.generatePublic(keySpec);
|
||||
Key key = keyFactory.generatePublic(keySpec);
|
||||
|
||||
return key.getEncoded();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue