[jboss-cvs] JBossCache/src/org/jboss/cache/jmx ...

Brian Stansberry brian.stansberry at jboss.com
Wed May 23 01:44:53 EDT 2007


  User: bstansberry
  Date: 07/05/23 01:44:53

  Modified:    src/org/jboss/cache/jmx  CacheLegacyJmxWrapper.java
  Log:
  Fix null checks
  
  Revision  Changes    Path
  1.9       +2 -2      JBossCache/src/org/jboss/cache/jmx/CacheLegacyJmxWrapper.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CacheLegacyJmxWrapper.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/jmx/CacheLegacyJmxWrapper.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -b -r1.8 -r1.9
  --- CacheLegacyJmxWrapper.java	23 May 2007 05:22:46 -0000	1.8
  +++ CacheLegacyJmxWrapper.java	23 May 2007 05:44:53 -0000	1.9
  @@ -44,7 +44,7 @@
    * configuration of the cache using the JBoss AS 4.x JMX microkernel.
    *
    * @author <a href="brian.stansberry at jboss.com">Brian Stansberry</a>
  - * @version $Revision: 1.8 $
  + * @version $Revision: 1.9 $
    */
   public class CacheLegacyJmxWrapper extends CacheJmxWrapper implements CacheLegacyJmxWrapperMBean, NotificationBroadcaster
   {
  @@ -87,7 +87,7 @@
         RuntimeConfig rtcfg = cfg.getRuntimeConfig();
         
         // Only inject if there isn't already a channel or factory
  -      if (rtcfg.getMuxChannelFactory() != null && rtcfg.getChannel() != null)
  +      if (rtcfg.getMuxChannelFactory() == null && rtcfg.getChannel() == null)
         {
            MBeanServer mbs = getMBeanServer();
            if (mbs != null)
  
  
  



More information about the jboss-cvs-commits mailing list