mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-14 14:46:25 +00:00
FIX: Splitcolumns must return an empty array if string was empty (#1315)
* Add test suite from rpraml * FIX: Splitcolumns must return an empty array if string was empty * Just the reference scripts
This commit is contained in:
1 parent
0e1c815826
commit
b642b3c644
64 files changed
+1945
No files matched your search
@@ -6,6 +6,9 @@ public class SplitColumns {
|
||||
* Return as an array of string column names.
|
||||
*/
|
||||
public static String[] split(String columns) {
|
||||
if (columns == null || columns.isEmpty()) {
|
||||
return new String[0];
|
||||
}
|
||||
return columns.split(",");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user