Ignore:
Timestamp:
2015-11-28T18:26:23+01:00 (8 years ago)
Author:
Don-vip
Message:

sonar - Immutable Field

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java

    r9021 r9067  
    6565public class SearchCompiler {
    6666
    67     private boolean caseSensitive;
    68     private boolean regexSearch;
     67    private final boolean caseSensitive;
     68    private final boolean regexSearch;
    6969    private static String  rxErrorMsg = marktr("The regex \"{0}\" had a parse error at offset {1}, full error:\n\n{2}");
    7070    private static String  rxErrorMsgNoPos = marktr("The regex \"{0}\" had a parse error, full error:\n\n{1}");
    71     private PushbackTokenizer tokenizer;
     71    private final PushbackTokenizer tokenizer;
    7272    private static Map<String, SimpleMatchFactory> simpleMatchFactoryMap = new HashMap<>();
    7373    private static Map<String, UnaryMatchFactory> unaryMatchFactoryMap = new HashMap<>();
     
    109109
    110110    public class CoreSimpleMatchFactory implements SimpleMatchFactory {
    111         private Collection<String> keywords = Arrays.asList("id", "version", "type", "user", "role",
     111        private final Collection<String> keywords = Arrays.asList("id", "version", "type", "user", "role",
    112112                "changeset", "nodes", "ways", "tags", "areasize", "waylength", "modified", "selected",
    113113                "incomplete", "untagged", "closed", "new", "indownloadedarea",
Note: See TracChangeset for help on using the changeset viewer.