Skip to content

Commit

Permalink
Improvements to the Jetty documentation.
Browse files Browse the repository at this point in the history
Clarified that in Jetty XML's Array element the attribute "type" may also be a child element.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
  • Loading branch information
sbordet committed Jan 11, 2021
1 parent 4080dda commit 4081c68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ You can only specify the key value via the `name` attribute, so the key can only
[[og-xml-syntax-array]]
===== `<Array>` and `<Item>`

Element `<Array>` creates a new array, whose component type may be specified by the `type` attribute.
Element `<Array>` creates a new array, whose component type may be specified by the `type` attribute, or by a `Type` child element.

[source,xml]
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@
<Call name="callStatic" class="org.eclipse.jetty.xml.TestConfiguration"/>

<Call name="call">
<Arg><Array type="java.lang.Object">
<Arg><Array>
<Type>java.lang.Object</Type>
<Item>Blah</Item>
<Item type="String">1.2.3.4:5678</Item>
<Item><New class="java.lang.Double"><Arg>1.2345</Arg></New></Item>
Expand All @@ -109,7 +110,8 @@
</Call>

<Call name="call">
<Arg><Array type="int">
<Arg><Array>
<Type>int</Type>
<Item type="int">1</Item>
<Item type="int">2</Item>
<Item type="int">3</Item>
Expand Down

0 comments on commit 4081c68

Please sign in to comment.