Reformat and clean up "provider" package
This commit is contained in:
@@ -29,9 +29,9 @@ import provider.DataFileEntry;
|
||||
import java.util.*;
|
||||
|
||||
public class WZDirectoryEntry extends WZEntry implements DataDirectoryEntry {
|
||||
private List<DataDirectoryEntry> subdirs = new ArrayList<>();
|
||||
private List<DataFileEntry> files = new ArrayList<>();
|
||||
private Map<String, DataEntry> entries = new HashMap<>();
|
||||
private final List<DataDirectoryEntry> subdirs = new ArrayList<>();
|
||||
private final List<DataFileEntry> files = new ArrayList<>();
|
||||
private final Map<String, DataEntry> entries = new HashMap<>();
|
||||
|
||||
public WZDirectoryEntry(String name, int size, int checksum, DataEntity parent) {
|
||||
super(name, size, checksum, parent);
|
||||
|
||||
@@ -25,11 +25,11 @@ import provider.DataEntity;
|
||||
import provider.DataEntry;
|
||||
|
||||
public class WZEntry implements DataEntry {
|
||||
private String name;
|
||||
private int size;
|
||||
private int checksum;
|
||||
private final String name;
|
||||
private final int size;
|
||||
private final int checksum;
|
||||
private int offset;
|
||||
private DataEntity parent;
|
||||
private final DataEntity parent;
|
||||
|
||||
public WZEntry(String name, int size, int checksum, DataEntity parent) {
|
||||
super();
|
||||
|
||||
@@ -42,7 +42,7 @@ import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
public class XMLDomMapleData implements Data {
|
||||
private Node node;
|
||||
private final Node node;
|
||||
private File imageDataDir;
|
||||
|
||||
public XMLDomMapleData(FileInputStream fis, File imageDataDir) {
|
||||
|
||||
@@ -31,8 +31,8 @@ import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
|
||||
public class XMLWZFile implements DataProvider {
|
||||
private File root;
|
||||
private WZDirectoryEntry rootForNavigation;
|
||||
private final File root;
|
||||
private final WZDirectoryEntry rootForNavigation;
|
||||
|
||||
public XMLWZFile(File fileIn) {
|
||||
root = fileIn;
|
||||
|
||||
Reference in New Issue
Block a user