Skip to content

Commit dd6ae96

Browse files
committedOct 25, 2019
Minor javadoc changes
1 parent 43ed5c1 commit dd6ae96

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed
 

Diff for: ‎src/main/java/org/assertj/core/api/AbstractIterableAssert.java

+18-18
Original file line numberDiff line numberDiff line change
@@ -2339,16 +2339,16 @@ public SELF filteredOnAssertions(Consumer<? super ELEMENT> elementAssertions) {
23392339
* you will be able to chain {@code first()} with more specific typed assertion.
23402340
* <p>
23412341
* Example: use of {@code String} assertions after {@code first()}
2342-
* <pre><code class='java'> Iterable&lt;String&gt; hobbits = newArrayList("frodo", "sam", "pippin");
2342+
* <pre><code class='java'> Iterable&lt;String&gt; hobbits = newArrayList("Frodo", "Sam", "Pippin");
23432343
*
23442344
* // assertion succeeds
23452345
* // String assertions are available after first()
23462346
* assertThat(hobbits, StringAssert.class).first()
2347-
* .startsWith("fro")
2347+
* .startsWith("Fro")
23482348
* .endsWith("do");
23492349
* // assertion fails
23502350
* assertThat(hobbits, StringAssert.class).first()
2351-
* .startsWith("pip");</code></pre>
2351+
* .startsWith("Pip");</code></pre>
23522352
*
23532353
* @return the assertion on the first element
23542354
* @throws AssertionError if the actual {@link Iterable} is empty.
@@ -2367,15 +2367,15 @@ public ELEMENT_ASSERT first() {
23672367
* assertions narrowed to the factory type.
23682368
* <p>
23692369
* Example: use of {@code String} assertions after {@code first(as(InstanceOfAssertFactories.STRING)}
2370-
* <pre><code class='java'> Iterable&lt;String&gt; hobbits = newArrayList("frodo", "sam", "pippin");
2370+
* <pre><code class='java'> Iterable&lt;String&gt; hobbits = newArrayList("Frodo", "Sam", "Pippin");
23712371
*
23722372
* // assertion succeeds
23732373
* assertThat(hobbits).first(as(InstanceOfAssertFactories.STRING))
2374-
* .startsWith("fro")
2374+
* .startsWith("Fro")
23752375
* .endsWith("do");
23762376
* // assertion fails
23772377
* assertThat(hobbits).first(as(InstanceOfAssertFactories.STRING))
2378-
* .startsWith("pip");
2378+
* .startsWith("Pip");
23792379
* // assertion fails because of wrong factory type
23802380
* assertThat(hobbits).first(as(InstanceOfAssertFactories.INTEGER))
23812381
* .isZero();</code></pre>
@@ -2423,16 +2423,16 @@ private ELEMENT_ASSERT internalFirst() {
24232423
* you will be able to chain {@code last()} with more specific typed assertion.
24242424
* <p>
24252425
* Example: use of {@code String} assertions after {@code last()}
2426-
* <pre><code class='java'> Iterable&lt;String&gt; hobbits = newArrayList("frodo", "sam", "pippin");
2426+
* <pre><code class='java'> Iterable&lt;String&gt; hobbits = newArrayList("Frodo", "Sam", "Pippin");
24272427
*
24282428
* // assertion succeeds
24292429
* // String assertions are available after last()
24302430
* assertThat(hobbits, StringAssert.class).last()
2431-
* .startsWith("pi")
2431+
* .startsWith("Pi")
24322432
* .endsWith("in");
24332433
* // assertion fails
24342434
* assertThat(hobbits, StringAssert.class).last()
2435-
* .startsWith("fro");</code></pre>
2435+
* .startsWith("Fro");</code></pre>
24362436
*
24372437
* @return the assertion on the last element
24382438
* @throws AssertionError if the actual {@link Iterable} is empty.
@@ -2451,15 +2451,15 @@ public ELEMENT_ASSERT last() {
24512451
* assertions narrowed to the factory type.
24522452
* <p>
24532453
* Example: use of {@code String} assertions after {@code last(as(InstanceOfAssertFactories.STRING)}
2454-
* <pre><code class='java'> Iterable&lt;String&gt; hobbits = newArrayList("frodo", "sam", "pippin");
2454+
* <pre><code class='java'> Iterable&lt;String&gt; hobbits = newArrayList("Frodo", "Sam", "Pippin");
24552455
*
24562456
* // assertion succeeds
24572457
* assertThat(hobbits).last(as(InstanceOfAssertFactories.STRING))
2458-
* .startsWith("pip")
2458+
* .startsWith("Pip")
24592459
* .endsWith("pin");
24602460
* // assertion fails
24612461
* assertThat(hobbits).last(as(InstanceOfAssertFactories.STRING))
2462-
* .startsWith("fro");
2462+
* .startsWith("Fro");
24632463
* // assertion fails because of wrong factory type
24642464
* assertThat(hobbits).last(as(InstanceOfAssertFactories.INTEGER))
24652465
* .isZero();</code></pre>
@@ -2521,16 +2521,16 @@ private ELEMENT lastElement() {
25212521
* you will be able to chain {@code element(index)} with more specific typed assertion.
25222522
* <p>
25232523
* Example: use of {@code String} assertions after {@code element(index)}
2524-
* <pre><code class='java'> Iterable&lt;String&gt; hobbits = newArrayList("frodo", "sam", "pippin");
2524+
* <pre><code class='java'> Iterable&lt;String&gt; hobbits = newArrayList("Frodo", "Sam", "Pippin");
25252525
*
25262526
* // assertion succeeds
25272527
* // String assertions are available after element(index)
25282528
* assertThat(hobbits, StringAssert.class).element(1)
2529-
* .startsWith("sa")
2529+
* .startsWith("Sa")
25302530
* .endsWith("am");
25312531
* // assertion fails
25322532
* assertThat(hobbits, StringAssert.class).element(1)
2533-
* .startsWith("fro");</code></pre>
2533+
* .startsWith("Fro");</code></pre>
25342534
*
25352535
* @param index the element's index
25362536
* @return the assertion on the given element
@@ -2550,15 +2550,15 @@ public ELEMENT_ASSERT element(int index) {
25502550
* assertions narrowed to the factory type.
25512551
* <p>
25522552
* Example: use of {@code String} assertions after {@code element(index, as(InstanceOfAssertFactories.STRING)}
2553-
* <pre><code class='java'> Iterable&lt;String&gt; hobbits = newArrayList("frodo", "sam", "pippin");
2553+
* <pre><code class='java'> Iterable&lt;String&gt; hobbits = newArrayList("Frodo", "Sam", "Pippin");
25542554
*
25552555
* // assertion succeeds
25562556
* assertThat(hobbits).element(1, as(InstanceOfAssertFactories.STRING))
2557-
* .startsWith("sa")
2557+
* .startsWith("Sa")
25582558
* .endsWith("am");
25592559
* // assertion fails
25602560
* assertThat(hobbits).element(1, as(InstanceOfAssertFactories.STRING))
2561-
* .startsWith("fro");
2561+
* .startsWith("Fro");
25622562
* // assertion fails because of wrong factory type
25632563
* assertThat(hobbits).element(1, as(InstanceOfAssertFactories.INTEGER))
25642564
* .isZero();</code></pre>

0 commit comments

Comments
 (0)