Hi,

The following code comes out as always false (second 'if (null)'):

  public static ServiceManager getInstance() throws RaccoonException {
    if (mServiceManager == null) {
      synchronized(ServiceManager.class) {
        /** We check if the singleton is still null */
        if (mServiceManager == null) { <= Code inspection yells here
          mServiceManager = new ServiceManager();
          mServiceManager.setPropertyFileName("service");
          /** Initialise the ServiceLoader */
          mServiceManager.start();
        }
      }
    }
    return mServiceManager;
  }

Maybe a special case could be handled for code surrounded by synchronized?

This is a very very low priority too me, but a nice to have :o)

a++ Cedric

_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to