@@ -2339,16 +2339,16 @@ public SELF filteredOnAssertions(Consumer<? super ELEMENT> elementAssertions) {
2339
2339
* you will be able to chain {@code first()} with more specific typed assertion.
2340
2340
* <p>
2341
2341
* Example: use of {@code String} assertions after {@code first()}
2342
- * <pre><code class='java'> Iterable<String> hobbits = newArrayList("frodo ", "sam ", "pippin ");
2342
+ * <pre><code class='java'> Iterable<String> hobbits = newArrayList("Frodo ", "Sam ", "Pippin ");
2343
2343
*
2344
2344
* // assertion succeeds
2345
2345
* // String assertions are available after first()
2346
2346
* assertThat(hobbits, StringAssert.class).first()
2347
- * .startsWith("fro ")
2347
+ * .startsWith("Fro ")
2348
2348
* .endsWith("do");
2349
2349
* // assertion fails
2350
2350
* assertThat(hobbits, StringAssert.class).first()
2351
- * .startsWith("pip ");</code></pre>
2351
+ * .startsWith("Pip ");</code></pre>
2352
2352
*
2353
2353
* @return the assertion on the first element
2354
2354
* @throws AssertionError if the actual {@link Iterable} is empty.
@@ -2367,15 +2367,15 @@ public ELEMENT_ASSERT first() {
2367
2367
* assertions narrowed to the factory type.
2368
2368
* <p>
2369
2369
* Example: use of {@code String} assertions after {@code first(as(InstanceOfAssertFactories.STRING)}
2370
- * <pre><code class='java'> Iterable<String> hobbits = newArrayList("frodo ", "sam ", "pippin ");
2370
+ * <pre><code class='java'> Iterable<String> hobbits = newArrayList("Frodo ", "Sam ", "Pippin ");
2371
2371
*
2372
2372
* // assertion succeeds
2373
2373
* assertThat(hobbits).first(as(InstanceOfAssertFactories.STRING))
2374
- * .startsWith("fro ")
2374
+ * .startsWith("Fro ")
2375
2375
* .endsWith("do");
2376
2376
* // assertion fails
2377
2377
* assertThat(hobbits).first(as(InstanceOfAssertFactories.STRING))
2378
- * .startsWith("pip ");
2378
+ * .startsWith("Pip ");
2379
2379
* // assertion fails because of wrong factory type
2380
2380
* assertThat(hobbits).first(as(InstanceOfAssertFactories.INTEGER))
2381
2381
* .isZero();</code></pre>
@@ -2423,16 +2423,16 @@ private ELEMENT_ASSERT internalFirst() {
2423
2423
* you will be able to chain {@code last()} with more specific typed assertion.
2424
2424
* <p>
2425
2425
* Example: use of {@code String} assertions after {@code last()}
2426
- * <pre><code class='java'> Iterable<String> hobbits = newArrayList("frodo ", "sam ", "pippin ");
2426
+ * <pre><code class='java'> Iterable<String> hobbits = newArrayList("Frodo ", "Sam ", "Pippin ");
2427
2427
*
2428
2428
* // assertion succeeds
2429
2429
* // String assertions are available after last()
2430
2430
* assertThat(hobbits, StringAssert.class).last()
2431
- * .startsWith("pi ")
2431
+ * .startsWith("Pi ")
2432
2432
* .endsWith("in");
2433
2433
* // assertion fails
2434
2434
* assertThat(hobbits, StringAssert.class).last()
2435
- * .startsWith("fro ");</code></pre>
2435
+ * .startsWith("Fro ");</code></pre>
2436
2436
*
2437
2437
* @return the assertion on the last element
2438
2438
* @throws AssertionError if the actual {@link Iterable} is empty.
@@ -2451,15 +2451,15 @@ public ELEMENT_ASSERT last() {
2451
2451
* assertions narrowed to the factory type.
2452
2452
* <p>
2453
2453
* Example: use of {@code String} assertions after {@code last(as(InstanceOfAssertFactories.STRING)}
2454
- * <pre><code class='java'> Iterable<String> hobbits = newArrayList("frodo ", "sam ", "pippin ");
2454
+ * <pre><code class='java'> Iterable<String> hobbits = newArrayList("Frodo ", "Sam ", "Pippin ");
2455
2455
*
2456
2456
* // assertion succeeds
2457
2457
* assertThat(hobbits).last(as(InstanceOfAssertFactories.STRING))
2458
- * .startsWith("pip ")
2458
+ * .startsWith("Pip ")
2459
2459
* .endsWith("pin");
2460
2460
* // assertion fails
2461
2461
* assertThat(hobbits).last(as(InstanceOfAssertFactories.STRING))
2462
- * .startsWith("fro ");
2462
+ * .startsWith("Fro ");
2463
2463
* // assertion fails because of wrong factory type
2464
2464
* assertThat(hobbits).last(as(InstanceOfAssertFactories.INTEGER))
2465
2465
* .isZero();</code></pre>
@@ -2521,16 +2521,16 @@ private ELEMENT lastElement() {
2521
2521
* you will be able to chain {@code element(index)} with more specific typed assertion.
2522
2522
* <p>
2523
2523
* Example: use of {@code String} assertions after {@code element(index)}
2524
- * <pre><code class='java'> Iterable<String> hobbits = newArrayList("frodo ", "sam ", "pippin ");
2524
+ * <pre><code class='java'> Iterable<String> hobbits = newArrayList("Frodo ", "Sam ", "Pippin ");
2525
2525
*
2526
2526
* // assertion succeeds
2527
2527
* // String assertions are available after element(index)
2528
2528
* assertThat(hobbits, StringAssert.class).element(1)
2529
- * .startsWith("sa ")
2529
+ * .startsWith("Sa ")
2530
2530
* .endsWith("am");
2531
2531
* // assertion fails
2532
2532
* assertThat(hobbits, StringAssert.class).element(1)
2533
- * .startsWith("fro ");</code></pre>
2533
+ * .startsWith("Fro ");</code></pre>
2534
2534
*
2535
2535
* @param index the element's index
2536
2536
* @return the assertion on the given element
@@ -2550,15 +2550,15 @@ public ELEMENT_ASSERT element(int index) {
2550
2550
* assertions narrowed to the factory type.
2551
2551
* <p>
2552
2552
* Example: use of {@code String} assertions after {@code element(index, as(InstanceOfAssertFactories.STRING)}
2553
- * <pre><code class='java'> Iterable<String> hobbits = newArrayList("frodo ", "sam ", "pippin ");
2553
+ * <pre><code class='java'> Iterable<String> hobbits = newArrayList("Frodo ", "Sam ", "Pippin ");
2554
2554
*
2555
2555
* // assertion succeeds
2556
2556
* assertThat(hobbits).element(1, as(InstanceOfAssertFactories.STRING))
2557
- * .startsWith("sa ")
2557
+ * .startsWith("Sa ")
2558
2558
* .endsWith("am");
2559
2559
* // assertion fails
2560
2560
* assertThat(hobbits).element(1, as(InstanceOfAssertFactories.STRING))
2561
- * .startsWith("fro ");
2561
+ * .startsWith("Fro ");
2562
2562
* // assertion fails because of wrong factory type
2563
2563
* assertThat(hobbits).element(1, as(InstanceOfAssertFactories.INTEGER))
2564
2564
* .isZero();</code></pre>
0 commit comments