Minor code changes in generating progress ID key

This commit is contained in:
nsingh@pivotal.io
2019-11-14 21:10:30 -08:00
parent 2afda6e8a4
commit 120b88a2d7

View File

@@ -40,7 +40,7 @@ public class SpringProcessConnectorService {
private final ProgressService progressService;
private int progressKey = 0;
private int progressIdKey = 0;
public SpringProcessConnectorService(ProgressService progressService, SpringProcessLiveDataProvider liveDataProvider) {
this.liveDataProvider = liveDataProvider;
@@ -197,9 +197,8 @@ public class SpringProcessConnectorService {
}
private ProgressTask getProgressTask(ProgressTask progressTask, String prefixId) {
String uniqueId = prefixId + progressKey++;
ProgressTask task = (progressTask == null)
? this.progressService.createProgressTask(uniqueId)
ProgressTask task = progressTask == null
? this.progressService.createProgressTask(prefixId + progressIdKey++)
: progressTask;
return task;
}