Moved the compressed variable set from a static method to the constructor

This commit is contained in:
jsrobson10 2020-07-22 11:34:03 +10:00
parent 1c803c6125
commit 7a50410132
1 changed files with 1 additions and 2 deletions

View File

@ -17,8 +17,6 @@ public class BdfFileManager extends BdfObject
private static BdfDatabase init(String path, boolean compressed) private static BdfDatabase init(String path, boolean compressed)
{ {
this.compressed = compressed;
// Get the file // Get the file
File file = new File(path); File file = new File(path);
@ -44,6 +42,7 @@ public class BdfFileManager extends BdfObject
public BdfFileManager(String path, boolean compressed) { public BdfFileManager(String path, boolean compressed) {
super(init(path, compressed)); super(init(path, compressed));
this.compressed = compressed;
this.path = path; this.path = path;
} }