/ Published in: Java
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
long[] returnIds; if (!CollectionUtils.isEmpty(ids)) { //non empty collection int count = 0; resourceIds = new long[this.selectedResources.size()]; if(null==id){ //convert nulls to 0s id=0L; } returnIds[count++] = id; } } else { returnIds = new long[0]; }