Skip to content

Commit 8203b52

Browse files
committed
Format StringToArray.convert() IAE better
It doesn't wrap anymore.
1 parent 0142f59 commit 8203b52

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/java/org/scijava/convert/StringToArrayConverter.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@ public boolean canConvert(final Object src, final Class<?> dest) {
7979
@Override
8080
public Object convert(Object src, Type dest) {
8181
final Type componentType = Types.component(dest);
82-
if (componentType == null) throw new IllegalArgumentException(dest +
83-
" is not an array type!");
82+
if (componentType == null) {
83+
throw new IllegalArgumentException(dest + " is not an array type!");
84+
}
8485
return convertToArray((String) src, componentType);
8586
}
8687

0 commit comments

Comments
 (0)