Author: manik.surtani(a)jboss.com
Date: 2008-01-02 06:30:24 -0500 (Wed, 02 Jan 2008)
New Revision: 4939
Modified:
core/trunk/src/main/java/org/jboss/cache/jmx/CacheJmxWrapper.java
Log:
code readability cleanups
Modified: core/trunk/src/main/java/org/jboss/cache/jmx/CacheJmxWrapper.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/jmx/CacheJmxWrapper.java 2008-01-02 11:29:53
UTC (rev 4938)
+++ core/trunk/src/main/java/org/jboss/cache/jmx/CacheJmxWrapper.java 2008-01-02 11:30:24
UTC (rev 4939)
@@ -547,7 +547,7 @@
public void create() throws CacheException
{
- if (cacheStatus.createAllowed() == false)
+ if (!cacheStatus.createAllowed())
{
if (cacheStatus.needToDestroyFailedCache())
destroy();
@@ -581,7 +581,7 @@
public void start() throws CacheException
{
- if (cacheStatus.startAllowed() == false)
+ if (!cacheStatus.startAllowed())
{
if (cacheStatus.needToDestroyFailedCache())
destroy(); // this will take us back to DESTROYED
@@ -614,7 +614,7 @@
public void stop()
{
- if (cacheStatus.stopAllowed() == false)
+ if (!cacheStatus.stopAllowed())
{
return;
}
@@ -654,7 +654,7 @@
public void destroy()
{
- if (cacheStatus.destroyAllowed() == false)
+ if (!cacheStatus.destroyAllowed())
{
if (cacheStatus.needStopBeforeDestroy())
{
@@ -1072,8 +1072,8 @@
this,
getNextNotificationSequenceNumber(), now, msg,
"State", "java.lang.Integer",
- Integer.valueOf(oldState), Integer.valueOf(newState)
- );
+ oldState, newState);
+
stateChangeNotification.setUserData(t);
sendNotification(stateChangeNotification);
Show replies by date