Skip to content

Commit

Permalink
Merge pull request #1079 from nextcloud/fix/fileversion-duplicate-getter
Browse files Browse the repository at this point in the history
fix: FileVersion: remove duplicate getters
  • Loading branch information
AlvaroBrey authored Mar 10, 2023
2 parents d2e180d + 2f37d7d commit f5d6344
Showing 1 changed file with 20 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@

import com.owncloud.android.lib.common.network.WebdavEntry;

import lombok.Getter;
import lombok.Setter;


/**
* Contains the data of a versioned file from a WebDavEntry.
*/
Expand All @@ -48,10 +44,10 @@ public class FileVersion implements Parcelable, ServerFileInterface {

public static final String DIRECTORY = "DIR";

@Getter @Setter private String mimeType;
@Getter @Setter private long fileLength;
@Getter @Setter private long modifiedTimestamp;
@Getter private long localId;
private String mimeType;
private long fileLength;
private long modifiedTimestamp;
private long localId;

@Override
public boolean isFavorite() {
Expand Down Expand Up @@ -98,6 +94,22 @@ public long getFileLength() {
return 0;
}

public void setMimeType(String mimeType) {
this.mimeType = mimeType;
}

public void setFileLength(long fileLength) {
this.fileLength = fileLength;
}

public long getModifiedTimestamp() {
return modifiedTimestamp;
}

public void setModifiedTimestamp(long modifiedTimestamp) {
this.modifiedTimestamp = modifiedTimestamp;
}

public boolean isHidden() {
return getFileName().startsWith(".");
}
Expand Down

0 comments on commit f5d6344

Please sign in to comment.