TestDocComments.java revision 782
782N/A * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 782N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 782N/A * This code is free software; you can redistribute it and/or modify it 782N/A * under the terms of the GNU General Public License version 2 only, as 782N/A * published by the Free Software Foundation. 782N/A * This code is distributed in the hope that it will be useful, but WITHOUT 782N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 782N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 782N/A * version 2 for more details (a copy is included in the LICENSE file that 782N/A * accompanied this code). 782N/A * You should have received a copy of the GNU General Public License version 782N/A * 2 along with this work; if not, write to the Free Software Foundation, 782N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 782N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 782N/A * or visit www.oracle.com if you need additional information or have any 782N/A * @summary no access to doc comments from Tree API 782N/A * class-TestDocComments. 782N/A error(
"Unexpected number of doc comments found: " + n);
782N/A * class-CommentScanner. 782N/A * method-visitVariable. 782N/A // for simplicity, only check fields, not parameters or local decls