diff artifacts/src/main/java/org/dive4elements/river/artifacts/CrossSectionArtifact.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 8d5ca5175038
children 5e38e2924c07
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/CrossSectionArtifact.java	Fri Sep 05 12:54:58 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/CrossSectionArtifact.java	Fri Sep 05 12:58:17 2014 +0200
@@ -71,8 +71,8 @@
     /** Name of data item storing the next possible km. */
     public static final String DATA_NEXT_KM = "cross_section.km.next";
 
-    /** Own logger. */
-    private static final Logger logger =
+    /** Own log. */
+    private static final Logger log =
         Logger.getLogger(CrossSectionArtifact.class);
 
     static {
@@ -113,7 +113,7 @@
         Document        data,
         List<Class>     loadFacets)
     {
-        logger.info("CrossSectionArtifact.setup");
+        log.info("CrossSectionArtifact.setup");
 
         super.setup(identifier, factory, context, callMeta, data, loadFacets);
 
@@ -121,7 +121,7 @@
 
         if (ids != null && ids.length() > 0) {
             addStringData(DATA_DBID, ids);
-            logger.debug("CrossSectionArtifacts db-id: " + ids);
+            log.debug("CrossSectionArtifacts db-id: " + ids);
         }
         else {
             throw new IllegalArgumentException("No attribute 'ids' found!");
@@ -233,7 +233,7 @@
             return Integer.parseInt(val);
         }
         catch (NumberFormatException e) {
-            logger.warn("Could not get data " + dataName + " as int", e);
+            log.warn("Could not get data " + dataName + " as int", e);
             return 0;
         }
     }
@@ -251,14 +251,14 @@
     private double getParentKm() {
         String val = getDataAsString(PARENT_KM);
         if (val == null) {
-            logger.warn("Empty data: " + PARENT_KM);
+            log.warn("Empty data: " + PARENT_KM);
             return 0;
         }
         try {
             return Double.valueOf(val);
         }
         catch (NumberFormatException e) {
-            logger.warn("Could not get data " + PARENT_KM + " as double", e);
+            log.warn("Could not get data " + PARENT_KM + " as double", e);
             return 0;
         }
     }
@@ -272,7 +272,7 @@
             return Double.valueOf(val);
         }
         catch (NumberFormatException e) {
-            logger.warn("Could not get data " + DATA_KM + " as double", e);
+            log.warn("Could not get data " + DATA_KM + " as double", e);
             return 0;
         }
     }
@@ -292,7 +292,7 @@
      *         in the form {{x1, x2} {y1, y2}} ).
      */
     public double [][] getCrossSectionData() {
-        logger.info("getCrossSectionData() for cross_section.km "
+        log.info("getCrossSectionData() for cross_section.km "
             + getDataAsString(DATA_KM));
         FastCrossSectionLine line = searchCrossSectionLine();
 
@@ -317,8 +317,8 @@
         CrossSection crossSection = CrossSectionFactory
             .getCrossSection(getDBID());
 
-        if (logger.isDebugEnabled()) {
-            logger.debug("dbid " + getDBID() + " : " + crossSection);
+        if (log.isDebugEnabled()) {
+            log.debug("dbid " + getDBID() + " : " + crossSection);
         }
 
         NavigableMap<Double, Integer> kms = CrossSectionKMService

http://dive4elements.wald.intevation.org