mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-12-30 20:29:46 +01:00
make method name clearer
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user