Copilot commented on code in PR #427:
URL: https://github.com/apache/commons-beanutils/pull/427#discussion_r3637527346
##########
src/test/java/org/apache/commons/beanutils2/converters/ArrayConverterTest.java:
##########
@@ -248,6 +248,23 @@ void testTheMatrix() {
}
}
+ /**
+ * A forward slash is not an allowed character, so it must split like any
other separator (see {@link #testUnderscore_BEANUTILS_302()}) instead of
commenting
+ * out the rest of the input and dropping the remaining elements.
+ */
+ @Test
+ void testForwardSlashSeparator() {
+ final String value = "first/value,second/value";
+ final ArrayConverter<String[]> converter = new
ArrayConverter(String[].class, new StringConverter());
Review Comment:
This instantiates ArrayConverter as a raw type, which causes an unchecked
assignment warning when assigning to ArrayConverter<String[]>. Use the diamond
operator (or an explicit type parameter) to keep the test warning-free.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]