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

changeset 1706
95d29b99e5b3
parent 1464
f72c9c5aeaef
child 2525
2eb010b6cb22
equal deleted inserted replaced
1705:891b88acf47a 1706:95d29b99e5b3
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) {

mercurial