commit | 0ed3dc111ec8c5b0b0379cd1e08010558bfb08f2 | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Sat Jan 31 00:52:25 2009 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Sat Jan 31 00:52:25 2009 +0000 |
tree | cf0942bb82cef825595e31e17273acec2dbdbb39 | |
parent | 8b25729c223403dd7eb6ae210bccef329f9181fe [diff] |
More [minor] refactoring. (FELIX-851) git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@739465 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/searchpolicy/ModuleImpl.java b/framework/src/main/java/org/apache/felix/framework/searchpolicy/ModuleImpl.java index 1e63832..ad157ee 100644 --- a/framework/src/main/java/org/apache/felix/framework/searchpolicy/ModuleImpl.java +++ b/framework/src/main/java/org/apache/felix/framework/searchpolicy/ModuleImpl.java
@@ -441,15 +441,6 @@ { return getClassLoader().loadClass(name); } - catch (ClassNotFoundException ex) - { -// TODO: REFACTOR - Should this log? - m_logger.log( - Logger.LOG_WARNING, - ex.getMessage(), - ex); - throw ex; - } finally { pkgCycleSet.remove(name); @@ -475,10 +466,14 @@ } catch (ClassNotFoundException ex) { + // This should never be thrown because we are loading resources. } catch (ResourceNotFoundException ex) { -// TODO: REFACTOR - Should this log? + m_logger.log( + Logger.LOG_DEBUG, + ex.getMessage(), + ex); } finally {