Skip to content

Commit 8e9a582

Browse files
committed
Incorporate PR suggestions
1 parent 9b5c2f3 commit 8e9a582

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

documentation/developer-guide/modules/tooling-guide/examples/GenerateJavaPojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public void generate() {
4040

4141
final JavaCodeGenerationConfig config = JavaCodeGenerationConfigBuilder.builder()
4242
.enableJacksonAnnotations( true )
43-
.packageName( "com.example.mycompany" ) // if left out, package is take from Aspect's namespace
43+
.packageName( "com.example.mycompany" ) // if left out, package is taken from Aspect's namespace
4444
.build();
4545
final AspectModelJavaGenerator generator = new AspectModelJavaGenerator( aspect, config );
4646
generator.generate( qualifiedName -> {

documentation/developer-guide/modules/tooling-guide/examples/GenerateJavaStaticClass.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public void generate() {
4040

4141
final JavaCodeGenerationConfig config = JavaCodeGenerationConfigBuilder.builder()
4242
.enableJacksonAnnotations( true )
43-
.packageName( "com.example.mycompany" ) // if left out, package is take from Aspect's namespace
43+
.packageName( "com.example.mycompany" ) // if left out, package is taken from Aspect's namespace
4444
.build();
4545
final StaticMetaModelJavaGenerator generator = new StaticMetaModelJavaGenerator( aspect, config );
4646
generator.generate( qualifiedName -> {

documentation/developer-guide/modules/tooling-guide/examples/GenerateOpenApi.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public void generateYaml() throws JsonProcessingException {
6060
type: string
6161
""" );
6262

63-
// Should the query API shall be added to the generated specification?
63+
// Should the query API be added to the generated specification?
6464
final boolean includeQueryApi = true;
6565

6666
// The paging Option to be chosen. In case paging is possible:
@@ -117,7 +117,7 @@ public void generateJson() throws IOException {
117117
}
118118
""" ) );
119119

120-
// Should the query API shall be added to the generated specification?
120+
// Should the query API be added to the generated specification?
121121
final boolean includeQueryApi = true;
122122

123123
// The paging Option to be chosen. In case paging is possible:

documentation/developer-guide/modules/tooling-guide/pages/java-aspect-tooling.adoc

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ information.
193193

194194
If you want to choose which model resolution strategy is used, you use the `resolveAspectModel()`
195195
method of the `AspectModelResolver`. In this case, you need to provide the resolution strategy and
196-
and the initial input (`InputStream`, `Model` or a `String` containing RDF/Turtle), or one or more
197-
URNs of model elements to resolve - have a look at the methods provided by `AspectModelResolver`.
196+
the initial input (`InputStream`, `Model` or a `String` containing RDF/Turtle), or one or more URNs
197+
of model elements to resolve - have a look at the methods provided by `AspectModelResolver`.
198198

199199
++++
200200
<details>
@@ -305,8 +305,8 @@ include::example$ValidateAspectModel.java[tags=imports]
305305
include::example$ValidateAspectModel.java[tags=validate]
306306
----
307307

308-
<1> For an immediate human-readable result of the validation result, use the `ViolationFormatter` or
309-
the `DetailedViolationFormatter`. Note that those are only intended for text-based interfaces such as
308+
<1> To format the validation result into an human-readable form, use the `ViolationFormatter` or the
309+
`DetailedViolationFormatter`. Note that those are only intended for text-based interfaces such as
310310
CLIs.
311311
<2> Every application dealing with validation results that needs to transform the results into some
312312
different structure should instead implement the `Violation.Visitor` Interface with a suitable target
@@ -425,8 +425,7 @@ include::example$GenerateJsonPayload.java[tags=generate]
425425
=== Generating JSON Schema
426426

427427
The JSON schema generator creates a https://json-schema.org/[JSON Schema] that describes the payload for an Aspect model
428-
as it could be returned by an Aspect that implements that Aspect model. Currently, the generated schema corresponds to
429-
428+
as it could be returned by an Aspect that implements that Aspect model.
430429

431430
++++
432431
<details>

0 commit comments

Comments
 (0)