8030082: Fix raw types lint warnings, etc. in various sun.security libraries
Reviewed-by: chegar, mullan
This commit is contained in:
parent
e341c735ed
commit
73f4f12f6a
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2009, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -58,7 +58,7 @@ final class ProviderConfig {
|
||||
|
||||
// parameters for the Provider(String) constructor,
|
||||
// use by doLoadProvider()
|
||||
private final static Class[] CL_STRING = { String.class };
|
||||
private final static Class<?>[] CL_STRING = { String.class };
|
||||
|
||||
// name of the provider class
|
||||
private final String className;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -285,9 +285,9 @@ public class PolicyFile extends java.security.Policy {
|
||||
|
||||
// for use with the reflection API
|
||||
|
||||
private static final Class[] PARAMS0 = { };
|
||||
private static final Class[] PARAMS1 = { String.class };
|
||||
private static final Class[] PARAMS2 = { String.class, String.class };
|
||||
private static final Class<?>[] PARAMS0 = { };
|
||||
private static final Class<?>[] PARAMS1 = { String.class };
|
||||
private static final Class<?>[] PARAMS2 = { String.class, String.class };
|
||||
|
||||
/**
|
||||
* Initializes the Policy object and reads the default policy
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -106,7 +106,7 @@ public class CRLExtensions {
|
||||
}
|
||||
}
|
||||
|
||||
private static final Class[] PARAMS = {Boolean.class, Object.class};
|
||||
private static final Class<?>[] PARAMS = {Boolean.class, Object.class};
|
||||
|
||||
// Parse the encoded extension
|
||||
private void parseExtension(Extension ext) throws CRLException {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -89,7 +89,7 @@ public class CertificateExtensions implements CertAttrSet<Extension> {
|
||||
}
|
||||
}
|
||||
|
||||
private static Class[] PARAMS = {Boolean.class, Object.class};
|
||||
private static Class<?>[] PARAMS = {Boolean.class, Object.class};
|
||||
|
||||
// Parse the encoded extension
|
||||
private void parseExtension(Extension ext) throws IOException {
|
||||
|
@ -1115,8 +1115,7 @@ public class X509CertImpl extends X509Certificate implements DerEncoder {
|
||||
SubjectKeyIdentifierExtension ski = getSubjectKeyIdentifierExtension();
|
||||
if (ski != null) {
|
||||
try {
|
||||
return (KeyIdentifier)ski.get(
|
||||
SubjectKeyIdentifierExtension.KEY_ID);
|
||||
return ski.get(SubjectKeyIdentifierExtension.KEY_ID);
|
||||
} catch (IOException ioe) {} // not possible
|
||||
}
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user