Mercurial > dive4elements > river
changeset 8843:3ecf1f76b2b8
Mark constants final.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 12 Jan 2018 12:12:27 +0100 |
parents | ff27548d078c |
children | 890f708b18d6 |
files | backend/src/main/java/org/dive4elements/river/importer/Importer.java backend/src/main/java/org/dive4elements/river/importer/parsers/DA66Parser.java |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/importer/Importer.java Fri Jan 12 12:09:44 2018 +0100 +++ b/backend/src/main/java/org/dive4elements/river/importer/Importer.java Fri Jan 12 12:12:27 2018 +0100 @@ -36,9 +36,9 @@ public class Importer { /** Private log. */ - private static Logger log = Logger.getLogger(Importer.class); + private static final Logger log = Logger.getLogger(Importer.class); - private static String BWASTR_ID_CSV_FILE = "BWASTR_ID.csv"; + private static final String BWASTR_ID_CSV_FILE = "BWASTR_ID.csv"; protected List<ImportRiver> rivers;
--- a/backend/src/main/java/org/dive4elements/river/importer/parsers/DA66Parser.java Fri Jan 12 12:09:44 2018 +0100 +++ b/backend/src/main/java/org/dive4elements/river/importer/parsers/DA66Parser.java Fri Jan 12 12:12:27 2018 +0100 @@ -38,9 +38,9 @@ /** Private log. */ private static Logger log = Logger.getLogger(DA66Parser.class); - private static String HEAD_HEAD = "00"; - private static String HEAD_GEOM = "66"; // "Values" - private static String HEAD_ENDG = "88"; // Probably never used. + private static final String HEAD_HEAD = "00"; + private static final String HEAD_GEOM = "66"; // "Values" + private static final String HEAD_ENDG = "88"; // Probably never used. /** Regex to match lines of files in da66 format. */ private static final Pattern LINE_PATTERN =