commit | e325c0fd44a05b2859f799882d82b32f995481d7 | [log] [tgz] |
---|---|---|
author | Felix Meschberger <fmeschbe@apache.org> | Wed Jul 29 19:22:44 2009 +0000 |
committer | Felix Meschberger <fmeschbe@apache.org> | Wed Jul 29 19:22:44 2009 +0000 |
tree | a77fe45efce6acfc432721aaf4b5a61c378b6910 | |
parent | 967e370f7e1092e54dfc8fb6e6d288494d241e68 [diff] |
Formatting: replace tabs with spaces git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@799027 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scr/src/main/java/org/apache/felix/scr/impl/manager/ServiceFactoryComponentManager.java b/scr/src/main/java/org/apache/felix/scr/impl/manager/ServiceFactoryComponentManager.java index db8b773..60f1bb1 100644 --- a/scr/src/main/java/org/apache/felix/scr/impl/manager/ServiceFactoryComponentManager.java +++ b/scr/src/main/java/org/apache/felix/scr/impl/manager/ServiceFactoryComponentManager.java
@@ -109,16 +109,16 @@ serviceContexts.put( service, serviceContext ); // if this is the first use of this component, switch to ACTIVE state - if (getState() == STATE_REGISTERED) - { - synchronized(this) - { - if (getState() == STATE_REGISTERED) - { - changeState(Active.getInstance()); - } - } - } + if ( getState() == STATE_REGISTERED ) + { + synchronized ( this ) + { + if ( getState() == STATE_REGISTERED ) + { + changeState( Active.getInstance() ); + } + } + } } return service;