Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8996908

Browse files
committedMar 17, 2025··
fix som faktisk funker. Godt med tester :)
1 parent 2ac1234 commit 8996908

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎kontrakt/src/main/java/no/nav/ung/sak/kontrakt/dokument/DokumentDto.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import no.nav.ung.sak.typer.JournalpostId;
1313

1414
public class DokumentDto {
15-
private List<Long> behandlinger = new ArrayList<>();
15+
private List<Long> behandlinger;
1616
private String dokumentId;
1717
private String gjelderFor;
1818
private JournalpostId journalpostId;
@@ -25,7 +25,7 @@ public class DokumentDto {
2525
private String brevkode;
2626

2727
public DokumentDto(String basePath) {
28-
this.basePath = basePath + "&journalpostId=%s&dokumentId=%s";
28+
this.basePath = String.format("%s",basePath) + "&journalpostId=%s&dokumentId=%s";
2929
this.behandlinger = new ArrayList<>();
3030
}
3131

@@ -122,7 +122,8 @@ public int hashCode() {
122122

123123
void genererLenke() {
124124
if (journalpostId != null && journalpostId.getVerdi() != null && dokumentId != null) {
125-
this.href = String.format("%s", basePath) + String.format("%s/%s", journalpostId.getVerdi(), dokumentId);
125+
this.href = String.format(basePath, journalpostId.getVerdi(), dokumentId);
126126
}
127+
127128
}
128129
}

0 commit comments

Comments
 (0)
Please sign in to comment.