use of jetbrains.buildServer.serverSide.problems.BuildProblem in project teamcity-rest by JetBrains.
the class ProblemFinder method getCurrentProblemsList.
@NotNull
private Set<ProblemWrapper> getCurrentProblemsList(@Nullable SProject project) {
if (project == null) {
project = myProjectManager.getRootProject();
}
final List<BuildProblem> currentBuildProblemsList = myBuildProblemManager.getCurrentBuildProblemsList(project);
@NotNull final Set<ProblemWrapper> resultSet = new TreeSet<ProblemWrapper>();
for (BuildProblem buildProblem : currentBuildProblemsList) {
resultSet.add(new ProblemWrapper(buildProblem.getId(), buildProblem.getBuildProblemData(), myServiceLocator));
}
return resultSet;
}
Aggregations