diff gnv-artifacts/src/main/java/de/intevation/gnv/state/cache/ThematicDataCacheCleaner.java @ 870:dfd02f8d3602

Removed trailing whitespace. gnv-artifacts/trunk@1010 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 28 Apr 2010 06:53:44 +0000
parents 797a6264b89b
children f953c9a559d8
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/cache/ThematicDataCacheCleaner.java	Wed Apr 28 06:49:18 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/cache/ThematicDataCacheCleaner.java	Wed Apr 28 06:53:44 2010 +0000
@@ -38,8 +38,8 @@
      * the logger, used to log exceptions and additonaly information
      */
     private static Logger log = Logger.getLogger(ThematicDataCacheCleaner.class);
-    
-    private final static String XPATH_ARTIFACTS = 
+
+    private final static String XPATH_ARTIFACTS =
                                     "/artifact-database/artifacts/artifact";
     private final static String XPATH_STATES = "states/state";
     private final static String XPATH_STATEID = "id";
@@ -141,7 +141,7 @@
         if (artifactList != null && artifactList.getLength() > 0){
             for (int i = 0; i < artifactList.getLength(); i++){
                 Element currentArtifactNode = (Element)artifactList.item(i);
-                
+
                 String link = currentArtifactNode.getAttribute("xlink:href");
                 if (link != null && link.length() > 0){
                     String absolutFileName = Config.replaceConfigDir(link);
@@ -155,7 +155,7 @@
                         Element currentStateNode = (Element)stateList.item(j);
                         String stateId = currentStateNode
                                           .getAttribute(XPATH_STATEID);
-                        String queryID = Config.getStringXPath(currentStateNode, 
+                        String queryID = Config.getStringXPath(currentStateNode,
                                                                 XPATH_QUERYID);
                         try {
                             if (queryID != null){
@@ -215,7 +215,7 @@
         Cache cache = factory.getCache();
         List<String> keys = cache.getKeys();
         String keySample = StateBase.HASH_ID_SEPARATOR +
-                     stateId + 
+                     stateId +
                      StateBase.HASH_ID_SEPARATOR;
         if (keys != null && keys.size() > 0){
             Iterator<String> it = keys.iterator();
@@ -224,10 +224,10 @@
                 if (key != null && key.contains(keySample)){
                     boolean removed = cache.remove(key);
                     if (!removed){
-                        log.warn("Object with Key " + 
+                        log.warn("Object with Key " +
                                  key + "could not be removed from Cache");
                     }else{
-                        log.debug("Object with Key " + 
+                        log.debug("Object with Key " +
                                  key + "has been removed from Cache");
                     }
                 }

http://dive4elements.wald.intevation.org