Skip to content

Commit

Permalink
Merge pull request #41 from KPMP/change-int-to-long
Browse files Browse the repository at this point in the history
change int to Long
  • Loading branch information
HaneenT authored Sep 24, 2024
2 parents de56828 + a7691a5 commit b8bc966
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/kpmp/file/File.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class File {
private String packageId;

@Column(name = "file_size")
private int fileSize;
private Long fileSize;

@JsonProperty("fileid")
public int getFileId() {
Expand Down Expand Up @@ -62,11 +62,11 @@ public void setPackageId(String packageId) {
}

@JsonProperty("filesize")
public int getFileSize() {
public Long getFileSize() {
return fileSize;
}

public void setFileSize(int fileSize) {
public void setFileSize(Long fileSize) {
this.fileSize = fileSize;
}
}
4 changes: 2 additions & 2 deletions src/test/java/org/kpmp/file/FileTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void setPackageId() {

@Test
void setFileSize() {
file.setFileSize(12345);
assertEquals(12345, file.getFileSize());
file.setFileSize((long) 1234123421);
assertEquals(1234123421, file.getFileSize());
}
}

0 comments on commit b8bc966

Please sign in to comment.