[jboss-cvs] JBossCache/src/org/jboss/cache/buddyreplication ...
Elias Ross
genman at noderunner.net
Mon Nov 6 18:34:08 EST 2006
User: genman
Date: 06/11/06 18:34:08
Modified: src/org/jboss/cache/buddyreplication BuddyManager.java
Log:
Fix potential NPE found using static analysis, clean up unused variables, use Integer.valueOf() as an optimization
Revision Changes Path
1.47 +2 -2 JBossCache/src/org/jboss/cache/buddyreplication/BuddyManager.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: BuddyManager.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/buddyreplication/BuddyManager.java,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -b -r1.46 -r1.47
--- BuddyManager.java 23 Oct 2006 05:46:39 -0000 1.46
+++ BuddyManager.java 6 Nov 2006 23:34:08 -0000 1.47
@@ -112,13 +112,13 @@
BuddyLocatorConfig blc = config.getBuddyLocatorConfig();
try
{
- // its OK if the buddy locator config is null.
+ // it's OK if the buddy locator config is null.
buddyLocator = (blc == null) ? createDefaultBuddyLocator() : createBuddyLocator(blc);
}
catch (Exception e)
{
log.warn("Caught exception instantiating buddy locator", e);
- log.error("Unable to instantiate specified buddyLocatorClass [" + blc.getBuddyLocatorClass() + "]. Using default buddyLocator [" + NextMemberBuddyLocator.class.getName() + "] instead, with default properties.");
+ log.error("Unable to instantiate specified buddyLocatorClass [" + blc + "]. Using default buddyLocator [" + NextMemberBuddyLocator.class.getName() + "] instead, with default properties.");
buddyLocator = createDefaultBuddyLocator();
}
More information about the jboss-cvs-commits
mailing list