diff artifacts/src/main/java/org/dive4elements/river/artifacts/states/LocationSelect.java @ 8202:e4606eae8ea5

sed src/**/*.java 's/logger/log/g'
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 05 Sep 2014 12:58:17 +0200
parents af13ceeba52a
children 1a7cfeb1ff89 0a5239a1e46e
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/LocationSelect.java	Fri Sep 05 12:54:58 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/LocationSelect.java	Fri Sep 05 12:58:17 2014 +0200
@@ -34,8 +34,8 @@
  */
 public class LocationSelect extends LocationDistanceSelect {
 
-    /** The logger used in this class.*/
-    private static Logger logger = Logger.getLogger(LocationSelect.class);
+    /** The log used in this class.*/
+    private static Logger log = Logger.getLogger(LocationSelect.class);
 
 
     public LocationSelect() {
@@ -66,7 +66,7 @@
             maxVal = minmax[1];
         }
         else {
-            logger.warn("Could not read min/max distance values!");
+            log.warn("Could not read min/max distance values!");
         }
 
         if (name.equals(LOCATIONS)) {
@@ -90,7 +90,7 @@
     public boolean validate(Artifact artifact)
     throws IllegalArgumentException
     {
-        logger.debug("LocationSelect.validate");
+        log.debug("LocationSelect.validate");
 
         D4EArtifact flys = (D4EArtifact) artifact;
         StateData    data = getData(flys, LOCATIONS);
@@ -100,15 +100,15 @@
             : null;
 
         if (locationStr == null || locationStr.length() == 0) {
-            logger.error("No locations given.");
+            log.error("No locations given.");
             throw new IllegalArgumentException("error_empty_state");
         }
 
         double[] minmax = getMinMax(artifact);
         double[] mm     = extractLocations(locationStr);
 
-        logger.debug("Inserted min location: " + mm[0]);
-        logger.debug("Inserted max location: " + mm[mm.length-1]);
+        log.debug("Inserted min location: " + mm[0]);
+        log.debug("Inserted max location: " + mm[mm.length-1]);
 
         return validateBounds(minmax[0], minmax[1], mm[0], mm[mm.length-1], 0d);
     }
@@ -131,7 +131,7 @@
                 locations.add(Double.parseDouble(l));
             }
             catch (NumberFormatException nfe) {
-                logger.warn(nfe, nfe);
+                log.warn(nfe, nfe);
             }
         }
 

http://dive4elements.wald.intevation.org