mx4j/src/core/javax/management/relation RelationSupport.java,1.15,1.16
Jeremy Boynes <[email protected]> Sun, 13 Feb 2005 20:56:08 +0000
| Newsgroups | gmane.comp.java.mx4j.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mx4j/mx4j/src/core/javax/management/relation
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18571/src/core/javax/management/relation
Modified Files:
RelationSupport.java
Log Message:
Tidy up Boolean handling (as they are immutable) and avoid NPE when checking isInRelationService
Index: RelationSupport.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/core/javax/management/relation/RelationSupport.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** RelationSupport.java 13 Feb 2005 20:47:28 -0000 1.15
--- RelationSupport.java 13 Feb 2005 20:56:06 -0000 1.16
***************
*** 33,37 ****
private MBeanServer m_server;
private RelationServiceMBean m_proxy;
! private Boolean m_isInRelationService = null;
private Map m_roleNameToRole = new HashMap();
--- 33,37 ----
private MBeanServer m_server;
private RelationServiceMBean m_proxy;
! private Boolean m_isInRelationService = Boolean.FALSE;
private Map m_roleNameToRole = new HashMap();
***************
*** 50,54 ****
RelationServiceMBean.class,
false);
- m_isInRelationService = new Boolean(false);
}
--- 50,53 ----
***************
*** 392,396 ****
public Boolean isInRelationService()
{
! return (new Boolean(m_isInRelationService.booleanValue()));
}
--- 391,395 ----
public Boolean isInRelationService()
{
! return m_isInRelationService;
}
***************
*** 398,402 ****
{
if (isHandledByRelationService == null) throw new IllegalArgumentException("Null flag");
! m_isInRelationService = new Boolean(isHandledByRelationService.booleanValue());
}
--- 397,401 ----
{
if (isHandledByRelationService == null) throw new IllegalArgumentException("Null flag");
! m_isInRelationService = isHandledByRelationService;
}
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click