[Yanel-commits] rev 40315 - public/yanel/trunk/src/core/java/org/wyona/yanel/core/map

michi at wyona.com michi at wyona.com
Mon Dec 8 16:16:03 CET 2008


Author: michi
Date: 2008-12-08 16:16:03 +0100 (Mon, 08 Dec 2008)
New Revision: 40315

Modified:
   public/yanel/trunk/src/core/java/org/wyona/yanel/core/map/Realm.java
Log:
obsolete imports and variables removed

Modified: public/yanel/trunk/src/core/java/org/wyona/yanel/core/map/Realm.java
===================================================================
--- public/yanel/trunk/src/core/java/org/wyona/yanel/core/map/Realm.java	2008-12-08 15:15:12 UTC (rev 40314)
+++ public/yanel/trunk/src/core/java/org/wyona/yanel/core/map/Realm.java	2008-12-08 15:16:03 UTC (rev 40315)
@@ -17,12 +17,9 @@
 package org.wyona.yanel.core.map;
 
 import java.io.File;
-import java.io.IOException;
 import java.util.ArrayList;
-import java.util.HashMap;
 
 import org.wyona.commons.io.FileUtil;
-import org.wyona.commons.io.Path;
 import org.wyona.security.core.IdentityManagerFactory;
 import org.wyona.security.core.PolicyManagerFactory;
 import org.wyona.security.core.api.IdentityManager;
@@ -252,14 +249,13 @@
         }
 
         Configuration reposElement = config.getChild("yarep-repositories", false);
-        ArrayList repos = new ArrayList();
         if (reposElement != null) {
             Configuration[] repoElements = reposElement.getChildren("repository");
             for (int i = 0; i < repoElements.length; i++) {
                 String id = repoElements[i].getAttribute("id");
                 String repoConfigPath = repoElements[i].getAttribute("config");
                 repoConfig = FileUtil.resolve(getConfigFile(), new File(repoConfigPath));
-                Repository repo = extraRepoFactory.newRepository(id, repoConfig);
+                extraRepoFactory.newRepository(id, repoConfig);
             }
         }
         
@@ -500,7 +496,7 @@
     }
 
     public void setLanguages(String[] languages) {
-        this.languages = (String[])languages.clone();
+        this.languages = languages.clone();
     }
 
     public TranslationManager getTranslationManager() {
@@ -517,9 +513,8 @@
         RepositoryFactory extraRepoFactory = yanel.getRepositoryFactory("ExtraRepositoryFactory");
         if (extraRepoFactory.exists(id)) {
             return extraRepoFactory.newRepository(id);
-        } else {
-            return null;
-        }
+        } 
+        return null;
     }
 
     public LanguageHandler getLanguageHandler() {



More information about the Yanel-commits mailing list