Author: siren
Date: Sat Sep 30 12:19:27 2006
New Revision: 451641

URL: http://svn.apache.org/viewvc?view=rev&rev=451641
Log:
cleaned up package to use generics and java5 loops, removed unnecessary log 
guards, fixed indentation

Modified:
    lucene/nutch/trunk/src/java/org/apache/nutch/plugin/PluginRepository.java

Modified: 
lucene/nutch/trunk/src/java/org/apache/nutch/plugin/PluginRepository.java
URL: 
http://svn.apache.org/viewvc/lucene/nutch/trunk/src/java/org/apache/nutch/plugin/PluginRepository.java?view=diff&rev=451641&r1=451640&r2=451641
==============================================================================
--- lucene/nutch/trunk/src/java/org/apache/nutch/plugin/PluginRepository.java 
(original)
+++ lucene/nutch/trunk/src/java/org/apache/nutch/plugin/PluginRepository.java 
Sat Sep 30 12:19:27 2006
@@ -196,9 +196,7 @@
         LOG.warn(mde.getMessage());
       } catch (CircularDependencyException cde) {
         // Simply ignore this plugin
-        if (LOG.isWarnEnabled()) {
-          LOG.warn(cde.getMessage());
-        }
+        LOG.warn(cde.getMessage());
       }
     }
     return new ArrayList<PluginDescriptor>(checked.values());
@@ -359,15 +357,11 @@
       }
 
       if (!includes.matcher(id).matches()) {
-        if (LOG.isDebugEnabled()) {
-          LOG.debug("not including: " + id);
-        }
+        LOG.debug("not including: " + id);
         continue;
       }
       if (excludes.matcher(id).matches()) {
-        if (LOG.isDebugEnabled()) {
-          LOG.debug("excluding: " + id);
-        }
+        LOG.debug("excluding: " + id);
         continue;
       }
       map.put(plugin.getPluginId(), plugin);


Reply via email to