8336039: Doccheck: HTML warnings, broken links and missing files in java.base documentation

Reviewed-by: liach, djelinski
This commit is contained in:
Nizar Benalla 2024-07-22 13:27:12 +00:00 committed by Chen Liang
parent 7ddd02599c
commit 92de2b2d5f
8 changed files with 19 additions and 20 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2022, 2024, 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
@ -33,11 +33,11 @@
* The main class for reading classfiles is {@link java.lang.classfile.ClassModel}; we
* convert bytes into a {@link java.lang.classfile.ClassModel} with {@link
* java.lang.classfile.ClassFile#parse(byte[])}:
* <p>
*
* {@snippet lang=java :
* ClassModel cm = ClassFile.of().parse(bytes);
* }
* <p>
*
* There are several additional overloads of {@code parse} that let you specify
* various processing options.
* <p>
@ -377,7 +377,7 @@
* <p>
* Then we can compose {@code fooToBar} and {@code instrumentCalls} with {@link
* java.lang.classfile.CodeTransform#andThen(java.lang.classfile.CodeTransform)}:
* <p>
*
* {@snippet lang=java :
* var cc = ClassFile.of();
* byte[] newBytes = cc.transform(cc.parse(bytes),
@ -443,7 +443,7 @@
* or more, zero or one, exactly one), and a list of components. The elements
* of a class are fields, methods, and the attributes that can appear on
* classes:
* <p>
*
* {@snippet lang="text" :
* ClassElement =
* FieldModel*(UtfEntry name, Utf8Entry descriptor)
@ -468,7 +468,7 @@
* | PermittedSubclassesAttribute?(List<ClassEntry> permittedSubclasses)
* | DeclarationElement*
* }
*<p>
*
* where {@code DeclarationElement} are the elements that are common to all declarations
* (classes, methods, fields) and so are factored out:
*