提交 0373934a 编写于 作者: D darcy

8027062: Fix lint and doclint issues in java.lang.{ClassLoader, ClassValue, SecurityManager}

Reviewed-by: chegar, forax, alanb, mduigou
上级 5c7eb1c5
...@@ -362,7 +362,7 @@ public abstract class ClassLoader { ...@@ -362,7 +362,7 @@ public abstract class ClassLoader {
* default implementation of this method searches for classes in the * default implementation of this method searches for classes in the
* following order: * following order:
* *
* <p><ol> * <ol>
* *
* <li><p> Invoke {@link #findLoadedClass(String)} to check if the class * <li><p> Invoke {@link #findLoadedClass(String)} to check if the class
* has already been loaded. </p></li> * has already been loaded. </p></li>
...@@ -488,7 +488,7 @@ public abstract class ClassLoader { ...@@ -488,7 +488,7 @@ public abstract class ClassLoader {
final SecurityManager sm = System.getSecurityManager(); final SecurityManager sm = System.getSecurityManager();
if (sm != null) { if (sm != null) {
if (ReflectUtil.isNonPublicProxyClass(cls)) { if (ReflectUtil.isNonPublicProxyClass(cls)) {
for (Class intf: cls.getInterfaces()) { for (Class<?> intf: cls.getInterfaces()) {
checkPackageAccess(intf, pd); checkPackageAccess(intf, pd);
} }
return; return;
......
...@@ -692,7 +692,7 @@ public abstract class ClassValue<T> { ...@@ -692,7 +692,7 @@ public abstract class ClassValue<T> {
/** Remove all stale entries, everywhere. */ /** Remove all stale entries, everywhere. */
private void removeStaleEntries() { private void removeStaleEntries() {
Entry[] cache = getCache(); Entry<?>[] cache = getCache();
removeStaleEntries(cache, 0, cache.length + PROBE_LIMIT - 1); removeStaleEntries(cache, 0, cache.length + PROBE_LIMIT - 1);
} }
......
...@@ -56,7 +56,7 @@ import sun.security.util.SecurityConstants; ...@@ -56,7 +56,7 @@ import sun.security.util.SecurityConstants;
* are called by various methods in the Java libraries before those * are called by various methods in the Java libraries before those
* methods perform certain potentially sensitive operations. The * methods perform certain potentially sensitive operations. The
* invocation of such a <code>check</code> method typically looks like this: * invocation of such a <code>check</code> method typically looks like this:
* <p><blockquote><pre> * <blockquote><pre>
* SecurityManager security = System.getSecurityManager(); * SecurityManager security = System.getSecurityManager();
* if (security != null) { * if (security != null) {
* security.check<i>XXX</i>(argument, &nbsp;.&nbsp;.&nbsp;.&nbsp;); * security.check<i>XXX</i>(argument, &nbsp;.&nbsp;.&nbsp;.&nbsp;);
...@@ -323,7 +323,7 @@ class SecurityManager { ...@@ -323,7 +323,7 @@ class SecurityManager {
* by {@link ClassLoader#getSystemClassLoader}) or one of its ancestors. * by {@link ClassLoader#getSystemClassLoader}) or one of its ancestors.
* <p> * <p>
* This method will return * This method will return
* <code>null</code> in the following three cases:<p> * <code>null</code> in the following three cases:
* <ol> * <ol>
* <li>All methods on the execution stack are from classes * <li>All methods on the execution stack are from classes
* defined using the system class loader or one of its ancestors. * defined using the system class loader or one of its ancestors.
...@@ -370,7 +370,7 @@ class SecurityManager { ...@@ -370,7 +370,7 @@ class SecurityManager {
* by {@link ClassLoader#getSystemClassLoader}) or one of its ancestors. * by {@link ClassLoader#getSystemClassLoader}) or one of its ancestors.
* <p> * <p>
* This method will return * This method will return
* <code>null</code> in the following three cases:<p> * <code>null</code> in the following three cases:
* <ol> * <ol>
* <li>All methods on the execution stack are from classes * <li>All methods on the execution stack are from classes
* defined using the system class loader or one of its ancestors. * defined using the system class loader or one of its ancestors.
...@@ -429,7 +429,7 @@ class SecurityManager { ...@@ -429,7 +429,7 @@ class SecurityManager {
* by {@link ClassLoader#getSystemClassLoader}) or one of its ancestors. * by {@link ClassLoader#getSystemClassLoader}) or one of its ancestors.
* <p> * <p>
* This method will return * This method will return
* -1 in the following three cases:<p> * -1 in the following three cases:
* <ol> * <ol>
* <li>All methods on the execution stack are from classes * <li>All methods on the execution stack are from classes
* defined using the system class loader or one of its ancestors. * defined using the system class loader or one of its ancestors.
...@@ -1281,7 +1281,6 @@ class SecurityManager { ...@@ -1281,7 +1281,6 @@ class SecurityManager {
* This method calls <code>checkPermission</code> with the * This method calls <code>checkPermission</code> with the
* <code>PropertyPermission(key, "read")</code> permission. * <code>PropertyPermission(key, "read")</code> permission.
* <p> * <p>
* <p>
* If you override this method, then you should make a call to * If you override this method, then you should make a call to
* <code>super.checkPropertyAccess</code> * <code>super.checkPropertyAccess</code>
* at the point the overridden method would normally throw an * at the point the overridden method would normally throw an
...@@ -1714,7 +1713,7 @@ class SecurityManager { ...@@ -1714,7 +1713,7 @@ class SecurityManager {
throw new NullPointerException("class can't be null"); throw new NullPointerException("class can't be null");
} }
if (which != Member.PUBLIC) { if (which != Member.PUBLIC) {
Class stack[] = getClassContext(); Class<?> stack[] = getClassContext();
/* /*
* stack depth of 4 should be the caller of one of the * stack depth of 4 should be the caller of one of the
* methods in java.lang.Class that invoke checkMember * methods in java.lang.Class that invoke checkMember
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册