updateProjectLink(ProjectLink.LINK_ISSUES_TRACKER, imConfig.getUrl(), sonarProject);
}
private void updateProjectLink(String linkType, String href, MavenProject sonarProject) {
if (href != null && !"".equals(href)) {
ProjectLink link = sonarProject.getProjectLinkByType(linkType);
if (link == null) {
link = new ProjectLink();
link.setMavenProject(sonarProject);
link.setType(linkType);
sonarProject.getProjectLinks().add(link);
}
link.setHref(href);
}
}