JDK 9 RFR of JDK-8031302 Fix raw types lint warnings in java.security
Xuelei Fan
Xuelei.Fan at Oracle.COM
Tue Jan 7 06:31:01 UTC 2014
Looks fine to me. Thanks for take care of the fixes.
Xuelei
On 1/7/2014 2:17 PM, Joe Darcy wrote:
> Hello,
>
> Please review the straightforward patch below to fix a handful of
> rawtypes lint warnings in java.security.
>
> Thanks,
>
> -Joe
>
> diff -r 8aba209fcc73 src/share/classes/java/security/Provider.java
> --- a/src/share/classes/java/security/Provider.java Mon Jan 06
> 13:54:54 2014 -0800
> +++ b/src/share/classes/java/security/Provider.java Mon Jan 06
> 22:12:47 2014 -0800
> @@ -1,5 +1,5 @@
> /*
> - * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights
> reserved.
> + * Copyright (c) 1996, 2014, 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
> @@ -1405,7 +1405,7 @@
> private String[] supportedFormats;
>
> // names of the supported key (super) classes
> - private Class[] supportedClasses;
> + private Class<?>[] supportedClasses;
>
> // whether this service has been registered with the Provider
> private boolean registered;
> @@ -1656,7 +1656,7 @@
> return o;
> }
> Class<?> argClass = constructorParameter.getClass();
> - Constructor[] cons = clazz.getConstructors();
> + Constructor<?>[] cons = clazz.getConstructors();
> // find first public constructor that can take the
> // argument as parameter
> for (int i = 0; i < cons.length; i++) {
> diff -r 8aba209fcc73
> src/share/classes/java/security/UnresolvedPermission.java
> --- a/src/share/classes/java/security/UnresolvedPermission.java Mon Jan
> 06 13:54:54 2014 -0800
> +++ b/src/share/classes/java/security/UnresolvedPermission.java Mon Jan
> 06 22:12:47 2014 -0800
> @@ -1,5 +1,5 @@
> /*
> - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights
> reserved.
> + * Copyright (c) 1997, 2014, 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
> @@ -216,9 +216,9 @@
> }
>
>
> - 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 };
>
> /**
> * try and resolve this permission using the class loader of the
> permission
>
More information about the security-dev
mailing list