Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: FileVersion: remove duplicate getters #1079

Merged
merged 2 commits into from
Mar 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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