Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

cleaned up package to use generics and java5 loops, removed unnecessary log guards, fixed indentation

Sami Sirenb5b6291b6f19
diff --git a/src/java/org/apache/nutch/plugin/PluginRepository.java b/src/java/org/apache/nutch/plugin/PluginRepository.java
index aece0a4ab..2034cc461 100644
--- a/src/java/org/apache/nutch/plugin/PluginRepository.java
+++ b/src/java/org/apache/nutch/plugin/PluginRepository.java
@@ -196,9 +196,7 @@ public class PluginRepository {
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 @@ public class PluginRepository {
}
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);