import org.sonar.db.audit.model.PropertyNewValue;
import static com.google.common.base.Preconditions.checkArgument;
-import static java.util.Collections.emptyList;
import static java.util.Collections.singletonList;
import static org.apache.commons.lang.StringUtils.repeat;
import static org.sonar.db.DatabaseUtils.executeLargeInputs;
}
}
- public List<PropertyDto> selectComponentProperties(DbSession session, String uuid) {
- return getMapper(session).selectByComponentUuids(singletonList(uuid));
+ public List<PropertyDto> selectComponentProperties(DbSession session, String componentUuid) {
+ return getMapper(session).selectByComponentUuids(singletonList(componentUuid));
}
- public List<PropertyDto> selectComponentProperties(String uuid) {
+ public List<PropertyDto> selectComponentProperties(String componentUuid) {
try (DbSession session = mybatis.openSession(false)) {
- return selectComponentProperties(session, uuid);
+ return selectComponentProperties(session, componentUuid);
}
}
String branch = dbClient.branchDao().selectByUuid(dbSession, component.getCopyComponentUuid())
.map(BranchDto::getKey)
.orElse(null);
- componentDtoToWsComponent(component, parentProject.orElse(null), lastAnalysis, branch, null)
+ return componentDtoToWsComponent(component, parentProject.orElse(null), lastAnalysis, branch, null)
.setNeedIssueSync(needIssueSync);
}
return componentDtoToWsComponent(component, parentProject.orElse(null), lastAnalysis, request.branch, request.pullRequest)