final fields

This commit is contained in:
Honfika
2014-01-19 22:33:23 +01:00
parent 44fa394f01
commit 0da9d423a0
138 changed files with 294 additions and 296 deletions
@@ -37,7 +37,7 @@ public enum ExportMode {
}
}
private int code;
private final int code;
private ExportMode(int code) {
this.code = code;
@@ -55,7 +55,7 @@ public class Graph {
public List<GraphPart> heads;
protected GraphSource code;
private List<Integer> alternateEntries;
private final List<Integer> alternateEntries;
public static final int SOP_USE_STATIC = 0;
public static final int SOP_SKIP_STATIC = 1;
public static final int SOP_REMOVE_STATIC = 2;
@@ -26,8 +26,8 @@ import java.util.List;
*/
public class GraphPath implements Serializable {
private List<Integer> keys = new ArrayList<>();
private List<Integer> vals = new ArrayList<>();
private final List<Integer> keys = new ArrayList<>();
private final List<Integer> vals = new ArrayList<>();
public String rootName = "";
public GraphPath(String rootName, List<Integer> keys, List<Integer> vals) {
@@ -26,7 +26,7 @@ import com.jpexs.decompiler.graph.model.LocalData;
*/
public class MarkItem extends GraphTargetItem {
private String mark;
private final String mark;
public MarkItem(String mark) {
super(null, NOPRECEDENCE);
@@ -25,7 +25,7 @@ import com.jpexs.decompiler.graph.GraphTargetItem;
*/
public class CommentItem extends GraphTargetItem {
private String[] commentLines;
private final String[] commentLines;
public CommentItem(String comment) {
super(null, NOPRECEDENCE);
@@ -27,7 +27,7 @@ import java.util.Set;
*/
public class IntegerValueItem extends GraphTargetItem {
private int intValue;
private final int intValue;
public IntegerValueItem(GraphSourceItem src, int value) {
super(src, PRECEDENCE_PRIMARY);