Skip to content

Commit

Permalink
Stricter visibility for FileMetadata related fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyor Goldstein committed Mar 10, 2021
1 parent f1a1070 commit 50ce266
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/org/c02e/jpgpj/FileMetadata.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public enum Format {
/** UTF-8 encoded text with CRLF line-endings. */
UTF8('u');

protected char code;
private final char code;

Format(char code) {
this.code = code;
Expand All @@ -51,11 +51,11 @@ public static Format byCode(char code) {
public static final String DEFAULT_NAME = "";
public static final Format DEFAULT_FORMAT = Format.BINARY;

protected String name;
protected Format format;
protected long length;
protected long lastModified;
protected Ring verified = new Ring();
private String name;
private Format format;
private long length;
private long lastModified;
private final Ring verified = new Ring();

/** Constructs a metadata object with default values. */
public FileMetadata() {
Expand Down

0 comments on commit 50ce266

Please sign in to comment.