diff gwt-client/src/main/java/org/dive4elements/river/client/server/ChartInfoServiceImpl.java @ 8203:238fc722f87a

sed 's/logger/log/g' src/**/*.java
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 05 Sep 2014 13:19:22 +0200
parents ea9eef426962
children 0a5239a1e46e
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/server/ChartInfoServiceImpl.java	Fri Sep 05 12:58:17 2014 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/server/ChartInfoServiceImpl.java	Fri Sep 05 13:19:22 2014 +0200
@@ -53,7 +53,7 @@
 extends      RemoteServiceServlet
 implements   ChartInfoService
 {
-    private static final Logger logger =
+    private static final Logger log =
         Logger.getLogger(ChartInfoServiceImpl.class);
 
     public static final String XPATH_TRANSFORM_MATRIX =
@@ -75,7 +75,7 @@
         Map<String, String> attr)
     throws ServerException
     {
-        logger.info("ChartInfoServiceImpl.getChartInfo");
+        log.info("ChartInfoServiceImpl.getChartInfo");
 
         String url  = getServletContext().getInitParameter("server-url");
 
@@ -103,7 +103,7 @@
             e.printStackTrace();
         }
 
-        logger.debug("Error while fetching chart info.");
+        log.debug("Error while fetching chart info.");
 
         throw new ServerException(EXCEPTION_STRING);
     }
@@ -123,7 +123,7 @@
 
 
     protected Axis[] parseXAxes(Document doc) {
-        logger.debug("ChartInfoServiceImpl.parseXAxes");
+        log.debug("ChartInfoServiceImpl.parseXAxes");
 
         NodeList axes = (NodeList) XMLUtils.xpath(
             doc,
@@ -136,7 +136,7 @@
 
 
     protected Axis[] parseYAxes(Document doc) {
-        logger.debug("ChartInfoServiceImpl.parseYAxes");
+        log.debug("ChartInfoServiceImpl.parseYAxes");
 
         NodeList axes = (NodeList) XMLUtils.xpath(
             doc,
@@ -149,11 +149,11 @@
 
 
     protected Axis[] parseAxes(NodeList axes) {
-        logger.debug("ChartInfoServiceImpl.parseAxes");
+        log.debug("ChartInfoServiceImpl.parseAxes");
 
         int count = axes != null ? axes.getLength() : 0;
 
-        logger.debug("Chart has " + count + " axes.");
+        log.debug("Chart has " + count + " axes.");
 
         if (count == 0) {
             return null;
@@ -178,7 +178,7 @@
 
                 if (pos >= result.length) {
                     // this should never happen
-                    logger.debug("The axis is out of valid range: " + pos);
+                    log.debug("The axis is out of valid range: " + pos);
                     continue;
                 }
 
@@ -188,11 +188,11 @@
                     long min  = Long.parseLong(minStr);
                     long max  = Long.parseLong(maxStr);
 
-                    if (logger.isDebugEnabled()) {
-                        logger.debug("date axis from: " + new Date(from));
-                        logger.debug("date axis to  : " + new Date(to));
-                        logger.debug("date axis min : " + new Date(min));
-                        logger.debug("date axis max : " + new Date(max));
+                    if (log.isDebugEnabled()) {
+                        log.debug("date axis from: " + new Date(from));
+                        log.debug("date axis to  : " + new Date(to));
+                        log.debug("date axis min : " + new Date(min));
+                        log.debug("date axis max : " + new Date(max));
                     }
 
                     result[pos] = new DateAxis(pos, from, to, min, max);
@@ -211,7 +211,7 @@
             }
         }
 
-        logger.debug("Parsed " + result.length + " axes");
+        log.debug("Parsed " + result.length + " axes");
 
         return result;
     }
@@ -226,7 +226,7 @@
      * coordinates.
      */
     protected Transform2D[] parseTransformationMatrix(Document doc) {
-        logger.debug("ChartInfoServiceImpl.parseTransformationMatrix");
+        log.debug("ChartInfoServiceImpl.parseTransformationMatrix");
 
         NodeList matrix = (NodeList) XMLUtils.xpath(
             doc,
@@ -242,7 +242,7 @@
             Transform2D t = createTransformer((Element) matrix.item(i));
 
             if (t == null) {
-                logger.warn("Broken transformation matrix at pos: " + i);
+                log.warn("Broken transformation matrix at pos: " + i);
                 continue;
             }
 
@@ -268,8 +268,8 @@
 
         if (sx != null && sy != null && tx != null && ty != null) {
             try {
-                logger.debug("Create new Transform2D with x format: " + xType);
-                logger.debug("Create new Transform2D with y format: " + yType);
+                log.debug("Create new Transform2D with x format: " + xType);
+                log.debug("Create new Transform2D with y format: " + yType);
 
                 return new Transform2D(
                     Double.parseDouble(sx),
@@ -279,11 +279,11 @@
                     xType, yType);
             }
             catch (NumberFormatException nfe) {
-                logger.warn("Error while parsing matrix values.");
+                log.warn("Error while parsing matrix values.");
             }
         }
 
-        logger.warn("No matrix values found.");
+        log.warn("No matrix values found.");
 
         return new Transform2D(1d, 1d, 0d, 0d);
     }

http://dive4elements.wald.intevation.org