mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 00:45:44 +01:00
Add "annotations" button to sources view
This commit is contained in:
@@ -33,7 +33,7 @@ import java.util.List;
|
||||
@Data
|
||||
public class BlameDto extends HalRepresentation {
|
||||
|
||||
private List<BlameLineDto> blameLines;
|
||||
private List<BlameLineDto> lines;
|
||||
|
||||
public BlameDto(Links links) {
|
||||
super(links);
|
||||
|
||||
@@ -44,7 +44,7 @@ public abstract class BlameResultToBlameDtoMapper implements InstantAttributeMap
|
||||
|
||||
BlameDto map(BlameResult result, NamespaceAndName namespaceAndName, String revision, String path) {
|
||||
BlameDto dto = createDto(namespaceAndName, revision, path);
|
||||
dto.setBlameLines(result.getBlameLines().stream().map(this::map).collect(Collectors.toList()));
|
||||
dto.setLines(result.getBlameLines().stream().map(this::map).collect(Collectors.toList()));
|
||||
return dto;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user