in src/main/java/jetbrains/buildServer/investigationsAutoAssigner/persistent/SuggestionsDao.java [38:60]
public List<ResponsibilityPersistentInfo> read(@Nullable Path resultsFilePath) throws IOException {
if (resultsFilePath != null && Files.exists(resultsFilePath) && Files.size(resultsFilePath) != 0) {
try (BufferedReader reader = Files.newBufferedReader(resultsFilePath)) {
ArtifactContent artifactContent = myGson.fromJson(reader, ArtifactContent.class);
if (artifactContent == null || artifactContent.suggestions == null) {
return Collections.emptyList();
} else if (artifactContent.serverUUID == null ||
!artifactContent.serverUUID.equals(mySettings.getServerUUID())) {
LOGGER.warn("%s: Server UUIDs don't match");
return Collections.emptyList();
} else {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug(String.format("Read %s stored investigations", artifactContent.suggestions.size()));
}
return artifactContent.suggestions;
}
}
}
return Collections.emptyList();
}