[hornetq-commits] JBoss hornetq SVN: r10235 - branches/Branch_2_2_EAP/src/main/org/hornetq/core/settings/impl.
do-not-reply at jboss.org
do-not-reply at jboss.org
Mon Feb 21 12:29:52 EST 2011
Author: clebert.suconic at jboss.com
Date: 2011-02-21 12:29:52 -0500 (Mon, 21 Feb 2011)
New Revision: 10235
Modified:
branches/Branch_2_2_EAP/src/main/org/hornetq/core/settings/impl/HierarchicalObjectRepository.java
Log:
Making getMatch more atomic
Modified: branches/Branch_2_2_EAP/src/main/org/hornetq/core/settings/impl/HierarchicalObjectRepository.java
===================================================================
--- branches/Branch_2_2_EAP/src/main/org/hornetq/core/settings/impl/HierarchicalObjectRepository.java 2011-02-21 16:51:47 UTC (rev 10234)
+++ branches/Branch_2_2_EAP/src/main/org/hornetq/core/settings/impl/HierarchicalObjectRepository.java 2011-02-21 17:29:52 UTC (rev 10235)
@@ -90,7 +90,8 @@
*/
public T getMatch(final String match)
{
- if (cache.get(match) != null)
+ T cacheResult = cache.get(match);
+ if (cacheResult != null)
{
return cache.get(match);
}
More information about the hornetq-commits
mailing list