< prev index next >
src/jdk.rmic/share/classes/sun/tools/java/ClassDefinition.java
Print this page
*** 257,267 ****
/**
* Tell if the class is inner.
* This predicate also returns true for top-level nested types.
* To test for a true inner class as seen by the programmer,
! * use <tt>!isTopLevel()</tt>.
*/
public final boolean isInnerClass() {
return outerClass != null;
}
--- 257,267 ----
/**
* Tell if the class is inner.
* This predicate also returns true for top-level nested types.
* To test for a true inner class as seen by the programmer,
! * use {@code !isTopLevel()}.
*/
public final boolean isInnerClass() {
return outerClass != null;
}
*** 909,919 ****
return (isDeprecated()
|| (outerClass != null && outerClass.reportDeprecated(env)));
}
/**
! * Note that this class is being used somehow by <tt>ref</tt>.
* Report deprecation errors, etc.
*/
public void noteUsedBy(ClassDefinition ref, long where, Environment env) {
// (Have this deal with canAccess() checks, too?)
if (reportDeprecated(env)) {
--- 909,919 ----
return (isDeprecated()
|| (outerClass != null && outerClass.reportDeprecated(env)));
}
/**
! * Note that this class is being used somehow by {@code ref}.
* Report deprecation errors, etc.
*/
public void noteUsedBy(ClassDefinition ref, long where, Environment env) {
// (Have this deal with canAccess() checks, too?)
if (reportDeprecated(env)) {
< prev index next >