6964914: javadoc does not output number of warnings using user written doclet

Reviewed-by: bpatel
This commit is contained in:
Jonathan Gibbons 2011-03-04 19:59:04 -08:00
parent 75c64565c4
commit 9365637c4a
11 changed files with 425 additions and 12 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2009, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -322,6 +322,7 @@ public class RootDocImpl extends DocImpl implements RootDoc {
/**
* Do lazy initialization of "documentation" string.
*/
@Override
protected String documentation() {
if (documentation == null) {
int cnt = options.length();
@ -348,6 +349,7 @@ public class RootDocImpl extends DocImpl implements RootDoc {
* Return the source position of the entity, or null if
* no position is available.
*/
@Override
public SourcePosition position() {
JavaFileObject path;
return ((path = getOverviewPath()) == null) ?