Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit 7ae78f9

Browse files
committed
More Asciidoc warnings
Signed-off-by: Guillermo González de Agüero <z06.guillermo@gmail.com>
1 parent 3f2fb02 commit 7ae78f9

File tree

8 files changed

+46
-57
lines changed

8 files changed

+46
-57
lines changed

src/main/asciidoc/bean-validation-advanced/bean-validation-advanced001.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,8 @@ ValidatorFactory validatorFactory = Validation
285285
----
286286
Using this validator, `StatsisticsPrinter` is validated in the following sequence of operations:
287287

288-
1. `StatisticsPrinter` is validated.
289-
a. The members of `StatisticsPrinter` that need cascading validation are validated.
290-
b. For container types, value extractor is determined. In the case of `StatsCalculator`, `ExtractorForStatsCalculator` is found and then values are retrieved for validation.
291-
c. `StatsCalculator` and its members such as `List` are validated.
292-
i. In-built `ValueExtractor` for `java.util.List` is used to retrieve the values of elements of the list and the validated. In this case, Employee and the field "phone" that is annotated with `@USPhoneNumber` constraint is validated.
288+
. `StatisticsPrinter` is validated.
289+
.. The members of `StatisticsPrinter` that need cascading validation are validated.
290+
.. For container types, value extractor is determined. In the case of `StatsCalculator`, `ExtractorForStatsCalculator` is found and then values are retrieved for validation.
291+
.. `StatsCalculator` and its members such as `List` are validated.
292+
.. In-built `ValueExtractor` for `java.util.List` is used to retrieve the values of elements of the list and the validated. In this case, Employee and the field "phone" that is annotated with `@USPhoneNumber` constraint is validated.

src/main/asciidoc/bean-validation/bean-validation002.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ a|
168168
@Positive
169169
BigDecimal area;
170170
----
171-
----
172171
|`@PositiveOrZero` |The value of the field or property must be a positive number or zero. .
173172
a|
174173
[source,java]

src/main/asciidoc/cdi-bootstrap-se8/cdi-bootstrap-se8.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
=== Bootstrapping a CDI Container in Java SE
2-
31
[[bootstrapping-a-cdi-container-in-java-se]]
42

3+
=== Bootstrapping a CDI Container in Java SE
4+
55
This chapter explains how to use the API for bootstrapping a CDI container in Java SE. This capability allows you to run CDI applications on Java SE and obtain beans, independently of an application server or any Jakarta EE APIs.
66

77
For more information about bootstrapping a CDI container in Java SE, see the _Weld Reference Guide_ at `http://weld.cdi-spec.org/documentation/`.

src/main/asciidoc/ejb-async/ejb-async002.adoc

Lines changed: 16 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -107,53 +107,40 @@ The following topics are addressed here:
107107
[[to-run-the-async-example-application-using-netbeans-ide]]
108108
====== To Run the async Example Application Using NetBeans IDE
109109

110-
1. Make sure that GlassFish Server has been started (see
111-
link:#BNADI[Starting and Stopping GlassFish
112-
Server]).
113-
2. From the File menu, choose Open Project.
114-
3. In the Open Project dialog box, navigate to:
110+
. Make sure that GlassFish Server has been started (see link:#BNADI[Starting and Stopping GlassFish Server]).
111+
. From the File menu, choose Open Project.
112+
. In the Open Project dialog box, navigate to:
115113
+
116114
[source,java]
117115
----
118116
tut-install/examples/ejb
119117
----
120-
4. Select the `async` folder, select Open Required Projects, and click
121-
Open Project.
122-
5. In the Projects tab, right-click the `async-smtpd` project and
123-
select Run.
118+
. Select the `async` folder, select Open Required Projects, and click Open Project.
119+
. In the Projects tab, right-click the `async-smtpd` project and select Run.
124120
+
125-
The SMTP server simulator starts accepting connections. The async-smptd
126-
output tab shows the following message:
121+
The SMTP server simulator starts accepting connections. The async-smptd output tab shows the following message:
127122
+
128123
[source,java]
129124
----
130125
[Test SMTP server listening on port 3025]
131126
----
132-
6. In the Projects tab, right-click the `async-war` project and select
133-
Build.
127+
. In the Projects tab, right-click the `async-war` project and select Build.
134128
+
135-
This command configures the Jakarta Mail resource using a GlassFish Server
136-
administrative command and builds, packages, and deploys the `async-war`
137-
module.
138-
7. Open the following URL in a web browser window:
129+
This command configures the Jakarta Mail resource using a GlassFish Server administrative command and builds, packages, and deploys the `async-war` module.
130+
. Open the following URL in a web browser window:
139131
+
140132
[source,java]
141133
----
142134
http://localhost:8080/async-war
143135
----
144-
8. In the web browser window, enter an email address and click Send
145-
email.
136+
. In the web browser window, enter an email address and click Send email.
146137
+
147-
The `MailerBean` stateless bean uses the Jakarta Mail API to deliver an
148-
email to the SMTP server simulator. The async-smptd output window in
149-
NetBeans IDE shows the resulting email message, including its headers.
150-
9. To stop the SMTP server simulator, click the X button on the right
151-
side of the status bar in NetBeans IDE.
152-
10. Delete the Jakarta Mail session resource.
153-
1. In the Services tab, expand the Servers node, then expand the
154-
GlassFish Server server node.
155-
2. Expand the Resources node, then expand the Jakarta Mail Sessions node.
156-
3. Right-click mail/myExampleSession and select Unregister.
138+
The `MailerBean` stateless bean uses the Jakarta Mail API to deliver an email to the SMTP server simulator. The async-smptd output window in NetBeans IDE shows the resulting email message, including its headers.
139+
. To stop the SMTP server simulator, click the X button on the right side of the status bar in NetBeans IDE.
140+
. Delete the Jakarta Mail session resource.
141+
.. In the Services tab, expand the Servers node, then expand the GlassFish Server server node.
142+
.. Expand the Resources node, then expand the Jakarta Mail Sessions node.
143+
.. Right-click mail/myExampleSession and select Unregister.
157144

158145
[[GKRFB]]
159146
[[to-run-the-async-example-application-using-maven]]

src/main/asciidoc/jms-examples/jms-examples008.adoc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,7 @@ To view the bean output,
266266
----
267267
+
268268
The output from the enterprise beans appears in the server log file. The
269-
Publisher session bean sends two sets of 18 messages numbered 0 through
270-
17. Because of the message selector, the message-driven bean receives
271-
only the messages whose `NewsType` property is `Sports` or `Opinion`.
269+
Publisher session bean sends two sets of 18 messages numbered 0 through 17. Because of the message selector, the message-driven bean receives only the messages whose `NewsType` property is `Sports` or `Opinion`.
272270
4. Undeploy the application after you have finished running it:
273271
+
274272
[source,java]

src/main/asciidoc/jms-examples/jms-examples009.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -146,25 +146,25 @@ This example uses two message-driven beans, both under
146146

147147
The beans take the following steps.
148148

149-
1. They inject a `MessageDrivenContext` resource, an `EntityManager`,
149+
. They inject a `MessageDrivenContext` resource, an `EntityManager`,
150150
and a `JMSContext`.
151-
2. The `onMessage` method retrieves the information in the message. The
151+
. The `onMessage` method retrieves the information in the message. The
152152
`EquipmentMDB`'s `onMessage` method chooses equipment, based on the new
153153
hire's position; the `OfficeMDB`'s `onMessage` method randomly generates
154154
an office number.
155-
3. After a slight delay to simulate real world processing hitches, the
155+
. After a slight delay to simulate real world processing hitches, the
156156
`onMessage` method calls a helper method, `compose`.
157-
4. The `compose` method takes the following steps.
158-
1. It either creates and persists the `SetupOffice` entity or finds it
157+
. The `compose` method takes the following steps.
158+
.. It either creates and persists the `SetupOffice` entity or finds it
159159
by primary key.
160-
2. It uses the entity to store the equipment or the office information
160+
.. It uses the entity to store the equipment or the office information
161161
in the database, calling either the `doEquipmentList` or the
162162
`doOfficeNumber` business method.
163-
3. If the business method returns `true`, meaning that all of the
163+
.. If the business method returns `true`, meaning that all of the
164164
information has been stored, it retrieves the reply destination
165165
information from the message, creates a `JMSProducer`, and sends a reply
166166
message that contains the information stored in the entity.
167-
4. It removes the entity.
167+
.. It removes the entity.
168168

169169
[[BNCHL]][[coding-the-entity-class-for-the-clientmdbentity-example]]
170170

src/main/asciidoc/jsonb/jsonb003.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The `jsonbbasics` example application is in the
1212
The following topics are addressed here:
1313

1414
* link:#components-of-the-jsonbbasics-example-application[Components of the jsonbbasics Example Application]
15-
* link:#running-the-jsonbbasics-example-application[Running the jsonbbasics Example Application]
15+
* link:#running-the-jsonbbasics-example-application-2[Running the jsonbbasics Example Application]
1616

1717
[[components-of-the-jsonbbasics-example-application]]
1818
===== Components of the jsonbbasics Example Application
@@ -24,7 +24,7 @@ The `jsonbbasics` example application contains the following files.
2424
** The `jsongenerated.xhtml` page contains a text area that displays the data in JSON format.
2525
* The `jsonbBean.java` managed bean, which is a session-scoped managed bean that stores the data from the form and directs the navigation between the Facelets pages. This file contains code that uses the JSON Binding API.
2626

27-
[[running-the-jsonbbasics-example-application]]
27+
[[running-the-jsonbbasics-example-application-2]]
2828
===== Running the jsonbbasics Example Application
2929

3030
This section describes how to run the `jsonbbasics` example application

src/main/asciidoc/security-api/security-api005.adoc

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ the `TestIdentityStore`. Note that the configuration described in these sections
2626
already been completed in the application files, but is provided here to illustrate
2727
what you need to do to use a custom identity store.
2828

29-
* link:#define-the-users-and-groups-in-the-identity-store[Define the Users and Groups in the Identity Store]
30-
* link:#specify-the-authentication-mechanism[Specify the Authentication Mechanism]
31-
* link:#declare-roles-in-the-servlet-container[Declare Roles in the Servlet Container]
29+
* link:#define-the-users-and-groups-in-the-identity-store-2[Define the Users and Groups in the Identity Store]
30+
* link:#specify-the-authentication-mechanism-2[Specify the Authentication Mechanism]
31+
* link:#declare-roles-in-the-servlet-container-2[Declare Roles in the Servlet Container]
3232

3333
When a request that includes credentials is sent to the application, the configured
3434
authentication mechanism comes into effect and authentication is performed
@@ -54,7 +54,8 @@ Content-Language:
5454
Content-Type: text/html
5555
----
5656

57-
[[define-the-users-and-groups-in-the-identity-store]]
57+
[[define-the-users-and-groups-in-the-identity-store-2]]
58+
5859
====== Define the Users and Groups in the Identity Store
5960

6061
The following table shows the user, password, and group used in this example.
@@ -75,7 +76,9 @@ if (usernamePasswordCredential.compareTo("Joe", "secret1")) {
7576
return new CredentialValidationResult("Joe", new HashSet<>(asList("foo", "bar")));
7677
}
7778
----
78-
[[specify-the-authentication-mechanism]]
79+
80+
[[specify-the-authentication-mechanism-2]]
81+
7982
====== Specify the Authentication Mechanism
8083

8184
In this application, credentials are validated using the BASIC authentication mechanism.
@@ -99,8 +102,10 @@ public class ApplicationConfig {
99102
----
100103

101104

102-
[[declare-roles-in-the-servlet-container]]
105+
[[declare-roles-in-the-servlet-container-2]]
106+
103107
====== Declare Roles in the Servlet Container
108+
104109
When a request is made to the application, the roles the user is in are
105110
returned as part of the response. Note that the container needs to be made aware
106111
of the supported roles, which are defined using the `@Declareroles({ "foo", "bar", "kaz" })`
@@ -167,7 +172,7 @@ select Build.
167172
This command builds and deploys the example application to your
168173
GlassFish Server instance.
169174

170-
[[GJQZH]][[to-build-package-and-deploy-the-custom-identity-store-example-using-using-maven]]
175+
[[to-build-package-and-deploy-the-custom-identity-store-example-using-using-maven]]
171176

172177
====== To Build, Package, and Deploy the custom-identity-store Example Using Maven
173178

0 commit comments

Comments
 (0)