Author: alesj
Date: 2009-08-27 17:10:49 -0400 (Thu, 27 Aug 2009)
New Revision: 92895
Modified:
projects/jboss-osgi/projects/runtime/microcontainer/trunk/src/main/java/org/jboss/osgi/plugins/facade/bundle/OSGiServiceState.java
Log:
Duplicate service is null check.
Modified:
projects/jboss-osgi/projects/runtime/microcontainer/trunk/src/main/java/org/jboss/osgi/plugins/facade/bundle/OSGiServiceState.java
===================================================================
---
projects/jboss-osgi/projects/runtime/microcontainer/trunk/src/main/java/org/jboss/osgi/plugins/facade/bundle/OSGiServiceState.java 2009-08-27
21:05:31 UTC (rev 92894)
+++
projects/jboss-osgi/projects/runtime/microcontainer/trunk/src/main/java/org/jboss/osgi/plugins/facade/bundle/OSGiServiceState.java 2009-08-27
21:10:49 UTC (rev 92895)
@@ -108,12 +108,9 @@
}
if (service == null)
throw new IllegalArgumentException("Null service");
+
this.bundleState = bundleState;
this.clazzes = clazzes;
- if (service == null)
- {
- throw new IllegalArgumentException("Null service");
- }
if (service instanceof ServiceFactory)
{
this.serviceFactory = (ServiceFactory) service;
Show replies by date