langtools/src/share/classes/com/sun/tools/javadoc/PackageDocImpl.java
changeset 17275 bcaa1940863a
parent 14961 e731935052af
child 22163 3651128c74eb
equal deleted inserted replaced
17274:64fdf967f6a5 17275:bcaa1940863a
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   332 
   332 
   333     /**
   333     /**
   334      * Get package name.
   334      * Get package name.
   335      */
   335      */
   336     public String qualifiedName() {
   336     public String qualifiedName() {
   337         Name fullname = sym.getQualifiedName();
   337         if (qualifiedName == null) {
   338         // Some bogus tests depend on the interned "" being returned.
   338             Name fullname = sym.getQualifiedName();
   339         // See 6457276.
   339             // Some bogus tests depend on the interned "" being returned.
   340         return fullname.isEmpty() ? "" : fullname.toString();
   340             // See 6457276.
   341     }
   341             qualifiedName = fullname.isEmpty() ? "" : fullname.toString();
       
   342         }
       
   343         return qualifiedName;
       
   344     }
       
   345 
       
   346     private String qualifiedName;
   342 
   347 
   343     /**
   348     /**
   344      * set doc path for an unzipped directory
   349      * set doc path for an unzipped directory
   345      */
   350      */
   346     public void setDocPath(FileObject path) {
   351     public void setDocPath(FileObject path) {