decompiler: cleanup - marked const fields final
This commit is contained in:
@@ -27,7 +27,7 @@ public class BytecodeMappingTracer {
|
||||
private StructLineNumberTableAttribute lineNumberTable = null;
|
||||
|
||||
// bytecode offset, source line
|
||||
private Map<Integer, Integer> mapping = new HashMap<Integer, Integer>();
|
||||
private final Map<Integer, Integer> mapping = new HashMap<Integer, Integer>();
|
||||
|
||||
public BytecodeMappingTracer() { }
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -21,7 +21,7 @@ public class CounterContainer {
|
||||
public static final int EXPRENT_COUNTER = 1;
|
||||
public static final int VAR_COUNTER = 2;
|
||||
|
||||
private int[] values = new int[]{1, 1, 1};
|
||||
private final int[] values = new int[]{1, 1, 1};
|
||||
|
||||
public void setCounter(int counter, int value) {
|
||||
values[counter] = value;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -29,8 +29,8 @@ public class ImportCollector {
|
||||
|
||||
private static final String JAVA_LANG_PACKAGE = "java.lang";
|
||||
|
||||
private Map<String, String> mapSimpleNames = new HashMap<String, String>();
|
||||
private Set<String> setNotImportedNames = new HashSet<String>();
|
||||
private final Map<String, String> mapSimpleNames = new HashMap<String, String>();
|
||||
private final Set<String> setNotImportedNames = new HashSet<String>();
|
||||
private String currentPackageSlash = "";
|
||||
private String currentPackagePoint = "";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -20,7 +20,7 @@ import java.util.Set;
|
||||
|
||||
public class VarNamesCollector {
|
||||
|
||||
private Set<String> usedNames = new HashSet<String>();
|
||||
private final Set<String> usedNames = new HashSet<String>();
|
||||
|
||||
public VarNamesCollector() { }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user