Skip to content

Commit

Permalink
Add JsonIgnore annotations to JsonDataFile, we may remove JsonDataFil…
Browse files Browse the repository at this point in the history
…e....
  • Loading branch information
Burchard36 committed Nov 20, 2021
1 parent ea31828 commit ea599eb
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/main/java/com/burchard36/json/JsonDataFile.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
package com.burchard36.json;

import com.burchard36.json.enums.FileFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.bukkit.plugin.java.JavaPlugin;

import java.io.File;

public class JsonDataFile {

public transient JavaPlugin plugin;
public transient FileFormat format;
private final transient File file;
@JsonIgnore
public JavaPlugin plugin;
@JsonIgnore
public FileFormat format;
@JsonIgnore
private final File file;

public JsonDataFile(final JavaPlugin plugin,
String pathToFile,
Expand All @@ -22,6 +26,7 @@ public JsonDataFile(final JavaPlugin plugin,
this.file = new File(this.plugin.getDataFolder(), pathToFile);
}

@JsonIgnore
public final File getFile() {
return this.file;
}
Expand Down

0 comments on commit ea599eb

Please sign in to comment.