diff artifacts/src/main/java/org/dive4elements/river/exports/ChartSettings.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 fca46ce8e4f5
children 6dfc3a1fc70d
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/ChartSettings.java	Fri Sep 05 12:54:58 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/ChartSettings.java	Fri Sep 05 12:58:17 2014 +0200
@@ -27,7 +27,7 @@
  */
 public class ChartSettings extends DefaultSettings {
 
-    private static final Logger logger = Logger.getLogger(ChartSettings.class);
+    private static final Logger log = Logger.getLogger(ChartSettings.class);
 
     protected ChartSection  chartSection;
     protected LegendSection legendSection;
@@ -170,7 +170,7 @@
      */
     public static ChartSettings parse(Node settings) {
         if (settings == null) {
-            logger.warn("Tried to parse ChartSettings from empty Node!");
+            log.warn("Tried to parse ChartSettings from empty Node!");
             return null;
         }
 
@@ -192,7 +192,7 @@
         int num = axesList != null ? axesList.getLength() : 0;
 
         if (num <= 0) {
-            logger.debug("No axis sections found.");
+            log.debug("No axis sections found.");
             return;
         }
 
@@ -213,14 +213,14 @@
         String up       = XMLUtils.xpathString(axis, "upper", null);
         String sugLabel = XMLUtils.xpathString(axis, "suggested-label", null);
 
-        if (logger.isDebugEnabled()) {
-            logger.debug("Found axis id:        '" + id + "'");
-            logger.debug("Found axis label:     '" + label + "'");
-            logger.debug("Found axis font size: '" + fSize + "'");
-            logger.debug("Found axis fixation:  '" + fixation + "'");
-            logger.debug("Found axis lower:     '" + low + "'");
-            logger.debug("Found axis upper:     '" + up + "'");
-            logger.debug("Found axis sug. label:'" + sugLabel + "'");
+        if (log.isDebugEnabled()) {
+            log.debug("Found axis id:        '" + id + "'");
+            log.debug("Found axis label:     '" + label + "'");
+            log.debug("Found axis font size: '" + fSize + "'");
+            log.debug("Found axis fixation:  '" + fixation + "'");
+            log.debug("Found axis lower:     '" + low + "'");
+            log.debug("Found axis upper:     '" + up + "'");
+            log.debug("Found axis sug. label:'" + sugLabel + "'");
         }
 
         section.setIdentifier(id);
@@ -249,13 +249,13 @@
         String placeh = XMLUtils.xpathString(chart, "chart/logo-placeh", null);
         String placev = XMLUtils.xpathString(chart, "chart/logo-placev", null);
 
-        if (logger.isDebugEnabled()) {
-            logger.debug("Found chart title:    '" + title + "'");
-            logger.debug("Found chart subtitle: '" + sub + "'");
-            logger.debug("Found chart grid:     '" + grid + "'");
-            logger.debug("Found chart logo:     '" + logo + "'");
-            logger.debug("Found chart logo placeh: '" + placeh + "'");
-            logger.debug("Found chart logo placev: '" + placev + "'");
+        if (log.isDebugEnabled()) {
+            log.debug("Found chart title:    '" + title + "'");
+            log.debug("Found chart subtitle: '" + sub + "'");
+            log.debug("Found chart grid:     '" + grid + "'");
+            log.debug("Found chart logo:     '" + logo + "'");
+            log.debug("Found chart logo placeh: '" + placeh + "'");
+            log.debug("Found chart logo placev: '" + placev + "'");
         }
 
         chartSection.setTitle(title);
@@ -276,10 +276,10 @@
         String fSize = XMLUtils.xpathString(legend, "legend/font-size", null);
         String lthre = XMLUtils.xpathString(legend, "legend/aggregation-threshold", null);
 
-        if (logger.isDebugEnabled()) {
-            logger.debug("Found legend visibility: '" + vis + "'");
-            logger.debug("Found legend font size : '" + fSize + "'");
-            logger.debug("Found legend aggregation threshold : '" + lthre + "'");
+        if (log.isDebugEnabled()) {
+            log.debug("Found legend visibility: '" + vis + "'");
+            log.debug("Found legend font size : '" + fSize + "'");
+            log.debug("Found legend aggregation threshold : '" + lthre + "'");
         }
 
         section.setVisibility(Boolean.valueOf(vis));
@@ -296,9 +296,9 @@
         String width  = XMLUtils.xpathString(export, "export/width", null);
         String height = XMLUtils.xpathString(export, "export/height", null);
 
-        if (logger.isDebugEnabled()) {
-            logger.debug("Found export width : '" + width + "'");
-            logger.debug("Found export height: '" + height + "'");
+        if (log.isDebugEnabled()) {
+            log.debug("Found export width : '" + width + "'");
+            log.debug("Found export height: '" + height + "'");
         }
 
         section.setWidth(Integer.valueOf(width.length() > 0 ? width : "-1"));

http://dive4elements.wald.intevation.org