src/share/classes/com/sun/tools/javadoc/ParameterizedTypeImpl.java

changeset 1374
c002fdee76fd
parent 1359
25e14ad23cef
child 2525
2eb010b6cb22
     1.1 --- a/src/share/classes/com/sun/tools/javadoc/ParameterizedTypeImpl.java	Tue Oct 23 13:58:56 2012 -0700
     1.2 +++ b/src/share/classes/com/sun/tools/javadoc/ParameterizedTypeImpl.java	Thu Oct 25 11:09:36 2012 -0700
     1.3 @@ -31,7 +31,7 @@
     1.4  import com.sun.tools.javac.code.Type;
     1.5  import com.sun.tools.javac.code.Type.ClassType;
     1.6  
     1.7 -import static com.sun.tools.javac.code.TypeTags.*;
     1.8 +import static com.sun.tools.javac.code.TypeTag.CLASS;
     1.9  
    1.10  
    1.11  /**
    1.12 @@ -95,7 +95,7 @@
    1.13       * Return null is this is a top-level type.
    1.14       */
    1.15      public com.sun.javadoc.Type containingType() {
    1.16 -        if (type.getEnclosingType().tag == CLASS) {
    1.17 +        if (type.getEnclosingType().hasTag(CLASS)) {
    1.18              // This is the type of an inner class.
    1.19              return TypeMaker.getType(env, type.getEnclosingType());
    1.20          }
    1.21 @@ -134,7 +134,7 @@
    1.22              return TypeMaker.getTypeName(cl, full);
    1.23          }
    1.24          StringBuilder s = new StringBuilder();
    1.25 -        if (cl.getEnclosingType().tag != CLASS) {               // if not an inner class...
    1.26 +        if (!(cl.getEnclosingType().hasTag(CLASS))) {               // if not an inner class...
    1.27              s.append(TypeMaker.getTypeName(cl, full));
    1.28          } else {
    1.29              ClassType encl = (ClassType)cl.getEnclosingType();

mercurial