# HG changeset patch # User darcy # Date 1386977078 28800 # Node ID 3638966a5c0234443b7d4ec09363dd510f3a8f58 # Parent cb0198e8d989b38c1cacf8b25102e4f04b6b5085 8030082: Fix raw types lint warnings, etc. in various sun.security libraries Reviewed-by: chegar, mullan diff -r cb0198e8d989 -r 3638966a5c02 jdk/src/share/classes/sun/security/jca/ProviderConfig.java --- a/jdk/src/share/classes/sun/security/jca/ProviderConfig.java Fri Dec 13 09:36:06 2013 -0800 +++ b/jdk/src/share/classes/sun/security/jca/ProviderConfig.java Fri Dec 13 15:24:38 2013 -0800 @@ -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 @@ // 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; diff -r cb0198e8d989 -r 3638966a5c02 jdk/src/share/classes/sun/security/provider/PolicyFile.java --- a/jdk/src/share/classes/sun/security/provider/PolicyFile.java Fri Dec 13 09:36:06 2013 -0800 +++ b/jdk/src/share/classes/sun/security/provider/PolicyFile.java Fri Dec 13 15:24:38 2013 -0800 @@ -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 @@ // 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 diff -r cb0198e8d989 -r 3638966a5c02 jdk/src/share/classes/sun/security/x509/CRLExtensions.java --- a/jdk/src/share/classes/sun/security/x509/CRLExtensions.java Fri Dec 13 09:36:06 2013 -0800 +++ b/jdk/src/share/classes/sun/security/x509/CRLExtensions.java Fri Dec 13 15:24:38 2013 -0800 @@ -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 @@ } } - 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 { diff -r cb0198e8d989 -r 3638966a5c02 jdk/src/share/classes/sun/security/x509/CertificateExtensions.java --- a/jdk/src/share/classes/sun/security/x509/CertificateExtensions.java Fri Dec 13 09:36:06 2013 -0800 +++ b/jdk/src/share/classes/sun/security/x509/CertificateExtensions.java Fri Dec 13 15:24:38 2013 -0800 @@ -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 @@ } } - 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 { diff -r cb0198e8d989 -r 3638966a5c02 jdk/src/share/classes/sun/security/x509/X509CertImpl.java --- a/jdk/src/share/classes/sun/security/x509/X509CertImpl.java Fri Dec 13 09:36:06 2013 -0800 +++ b/jdk/src/share/classes/sun/security/x509/X509CertImpl.java Fri Dec 13 15:24:38 2013 -0800 @@ -1115,8 +1115,7 @@ 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;