FINERACT-1198: Fixing incremental build for Gradle
This commit is contained in:
committed by
Aleksandar Vidakovic
parent
6e052e536b
commit
46ff275d07
+1
-2
@@ -19,7 +19,6 @@
|
||||
package org.apache.fineract.infrastructure.bulkimport.importhandler;
|
||||
|
||||
import com.google.common.base.Splitter;
|
||||
import com.google.common.collect.Iterables;
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
import org.apache.fineract.infrastructure.bulkimport.constants.TemplatePopulateImportConstants;
|
||||
@@ -134,7 +133,7 @@ public final class ImportHandlerUtils {
|
||||
|
||||
public static String trimEmptyDecimalPortion(String result) {
|
||||
if (result != null && result.endsWith(".0")) {
|
||||
return Iterables.get(Splitter.on("\\.").split(result), 0);
|
||||
return Splitter.on("\\.").split(result).iterator().next();
|
||||
} else {
|
||||
return result;
|
||||
}
|
||||
|
||||
+1
-3
@@ -18,7 +18,6 @@
|
||||
*/
|
||||
package org.apache.fineract.portfolio.transfer.service;
|
||||
|
||||
import com.google.common.collect.Iterables;
|
||||
import com.google.gson.JsonArray;
|
||||
import com.google.gson.JsonObject;
|
||||
import java.time.LocalDate;
|
||||
@@ -381,7 +380,6 @@ public class TransferWritePlatformServiceJpaRepositoryImpl implements TransferWr
|
||||
|
||||
private void handleClientTransferLifecycleEvent(final Client client, final Office destinationOffice,
|
||||
final TransferEventType transferEventType, final JsonCommand jsonCommand) {
|
||||
final Date todaysDate = DateUtils.getDateOfTenant();
|
||||
/** Get destination loan officer if exists **/
|
||||
Staff staff = null;
|
||||
Group destinationGroup = null;
|
||||
@@ -459,7 +457,7 @@ public class TransferWritePlatformServiceJpaRepositoryImpl implements TransferWr
|
||||
} else if (!destinationGroup.isActive()) {
|
||||
throw new GroupNotActiveException(destinationGroup.getId());
|
||||
}
|
||||
transferClientBetweenGroups(Iterables.get(client.getGroups(), 0), client, destinationGroup, true, staff);
|
||||
transferClientBetweenGroups(client.getGroups().stream().findFirst().get(), client, destinationGroup, true, staff);
|
||||
} else if (client.getGroups().size() == 0 && destinationGroup != null) {
|
||||
client.getGroups().add(destinationGroup);
|
||||
client.updateStaff(destinationGroup.getStaff());
|
||||
|
||||
Reference in New Issue
Block a user