From ab11acae2d8c565c4684baddf64533bc3c1ff93b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= Date: Wed, 10 Oct 2018 10:59:50 +0200 Subject: [PATCH] Show modified date only when present and use long for length --- .../main/java/sonia/scm/api/v2/resources/FileObjectDto.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectDto.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectDto.java index 470199066d..e42918e967 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectDto.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectDto.java @@ -18,7 +18,8 @@ public class FileObjectDto extends HalRepresentation { private String path; private boolean directory; private String description; - private int length; + private long length; + @JsonInclude(JsonInclude.Include.NON_EMPTY) private Instant lastModified; private SubRepositoryDto subRepository; @JsonInclude(JsonInclude.Include.NON_EMPTY)