Skip to content

Commit b46a06c

Browse files
Minor javadoc fixes
1 parent e338e6b commit b46a06c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/org/assertj/core/condition/VerboseCondition.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
// predicate description
3535
"shorter than 4",
3636
// value under test description transformation function
37-
s -&gt; String.format("but length was %s", s.length(), s));</code></pre>
37+
s -&gt; String.format(" but length was %s", s.length(), s));</code></pre>
3838
*
3939
* If we execute:
4040
* <pre><code class='java'> assertThat("foooo").is(shorterThan4);</code></pre>
@@ -43,7 +43,7 @@
4343
* "foooo"
4444
* to be shorter than 4 but length was 5</code></pre>
4545
* <p>
46-
* Note that the beginning of the error message looks nice with {@link AbstractAssert#is(Condition) is(Condition)}, if we had used {@link AbstractAssert#has(Condition) has(Condition)} it wouldn't be so nice:
46+
* Note that the beginning of the error message looks nice with {@link AbstractAssert#is(Condition) is(Condition)}, but not so much with {@link AbstractAssert#has(Condition) has(Condition)}:
4747
* <pre><code class='text'> Expecting actual:
4848
* "foooo"
4949
* to have shorter than 4 but length was 5</code></pre>
@@ -74,7 +74,7 @@ public final class VerboseCondition<T> extends Condition<T> {
7474
// predicate description
7575
"shorter than 4",
7676
// value under test description transformation function
77-
s -&gt; String.format("but length was %s", s.length(), s));</code></pre>
77+
s -&gt; String.format(" but length was %s", s.length(), s));</code></pre>
7878
*
7979
* If we execute:
8080
* <pre><code class='java'> assertThat("foooo").is(shorterThan4);</code></pre>
@@ -83,7 +83,7 @@ public final class VerboseCondition<T> extends Condition<T> {
8383
* "foooo"
8484
* to be shorter than 4 but length was 5</code></pre>
8585
* <p>
86-
* Note that the beginning of the error message looks nice with {@link AbstractAssert#is(Condition) is(Condition)}, if we had used {@link AbstractAssert#has(Condition) has(Condition)} it wouldn't be so nice:
86+
* Note that the beginning of the error message looks nice with {@link AbstractAssert#is(Condition) is(Condition)}, but not so much with {@link AbstractAssert#has(Condition) has(Condition)}:
8787
* <pre><code class='text'> Expecting actual:
8888
* "foooo"
8989
* to have shorter than 4 but length was 5</code></pre>

0 commit comments

Comments
 (0)