Author: borges
Date: 2012-02-24 11:03:36 -0500 (Fri, 24 Feb 2012)
New Revision: 12189
Modified:
trunk/hornetq-core/src/main/java/org/hornetq/api/core/management/DayCounterInfo.java
trunk/hornetq-rest/hornetq-rest/src/main/java/org/hornetq/rest/util/TimeoutTask.java
Log:
Fix findbugs warning: inconsistent synchronization
Modified:
trunk/hornetq-core/src/main/java/org/hornetq/api/core/management/DayCounterInfo.java
===================================================================
---
trunk/hornetq-core/src/main/java/org/hornetq/api/core/management/DayCounterInfo.java 2012-02-24
16:03:12 UTC (rev 12188)
+++
trunk/hornetq-core/src/main/java/org/hornetq/api/core/management/DayCounterInfo.java 2012-02-24
16:03:36 UTC (rev 12189)
@@ -15,7 +15,6 @@
import java.util.Arrays;
-import org.hornetq.core.logging.Logger;
import org.hornetq.utils.json.JSONArray;
import org.hornetq.utils.json.JSONException;
import org.hornetq.utils.json.JSONObject;
@@ -23,17 +22,12 @@
/**
* Helper class to create Java Objects from the
* JSON serialization returned by {@link QueueControl#listMessageCounterHistory()}.
- *
+ *
* @author <a href="mailto:jmesnil@redhat.com">Jeff Mesnil</a>
*/
public class DayCounterInfo
{
- // Constants -----------------------------------------------------
- private static final Logger log = Logger.getLogger(DayCounterInfo.class);
-
- // Attributes ----------------------------------------------------
-
private final String date;
private final int[] counters;
Modified:
trunk/hornetq-rest/hornetq-rest/src/main/java/org/hornetq/rest/util/TimeoutTask.java
===================================================================
---
trunk/hornetq-rest/hornetq-rest/src/main/java/org/hornetq/rest/util/TimeoutTask.java 2012-02-24
16:03:12 UTC (rev 12188)
+++
trunk/hornetq-rest/hornetq-rest/src/main/java/org/hornetq/rest/util/TimeoutTask.java 2012-02-24
16:03:36 UTC (rev 12189)
@@ -42,7 +42,7 @@
thread.interrupt();
}
- public int getInterval()
+ public synchronized int getInterval()
{
return interval;
}
Show replies by date