Skip to content

Commit 2c03c92

Browse files
committed
Fix wording in Javadoc for StringToObjectConverter
1 parent c613755 commit 2c03c92

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

junit-platform-commons/src/main/java/org/junit/platform/commons/support/conversion/StringToObjectConverter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ interface StringToObjectConverter {
3030
* guaranteed to be a wrapper type for primitives — for example,
3131
* {@link Integer} instead of {@code int}).
3232
*
33-
* <p>This method will only be invoked in {@link #canConvertTo(Class)}
34-
* returned {@code true} for the same target type.
33+
* <p>This method will only be invoked if {@link #canConvertTo(Class)}
34+
* returns {@code true} for the same target type.
3535
*/
3636
@Nullable
3737
Object convert(String source, Class<?> targetType) throws Exception;
@@ -41,8 +41,8 @@ interface StringToObjectConverter {
4141
* guaranteed to be a wrapper type for primitives &mdash; for example,
4242
* {@link Integer} instead of {@code int}).
4343
*
44-
* <p>This method will only be invoked in {@link #canConvertTo(Class)}
45-
* returned {@code true} for the same target type.
44+
* <p>This method will only be invoked if {@link #canConvertTo(Class)}
45+
* returns {@code true} for the same target type.
4646
*
4747
* <p>The default implementation simply delegates to {@link #convert(String, Class)}.
4848
* Can be overridden by concrete implementations of this interface that need

0 commit comments

Comments
 (0)