make method name clearer

This commit is contained in:
Konstantin Schaper
2020-12-01 09:12:47 +01:00
parent d5cec1c000
commit f0f9aad8de
2 changed files with 2 additions and 2 deletions

View File

@@ -114,7 +114,7 @@ public abstract class DefaultChangesetToChangesetDtoMapper extends HalAppenderMa
try (RepositoryService repositoryService = serviceFactory.create(repository)) {
if (repositoryService.isSupported(Command.TAGS)) {
embeddedBuilder.with("tags", tagCollectionToDtoMapper.getEmbeddedTagDtoList(namespace, name, source.getTags()));
embeddedBuilder.with("tags", tagCollectionToDtoMapper.getMinimalEmbeddedTagDtoList(namespace, name, source.getTags()));
}
if (repositoryService.isSupported(Command.BRANCHES)) {
embeddedBuilder.with("branches", branchCollectionToDtoMapper.getBranchDtoList(repository,

View File

@@ -58,7 +58,7 @@ public class TagCollectionToDtoMapper {
return tags.stream().map(tag -> tagToTagDtoMapper.map(tag, new NamespaceAndName(namespace, name))).collect(toList());
}
public List<TagDto> getEmbeddedTagDtoList(String namespace, String name, Collection<String> tags) {
public List<TagDto> getMinimalEmbeddedTagDtoList(String namespace, String name, Collection<String> tags) {
return tags.stream()
.map(tag -> {
Links links = linkingTo().self(resourceLinks.tag().self(namespace, name, tag)).build();