You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by de...@apache.org on 2016/06/24 14:24:20 UTC
svn commit: r1750120 -
/uima/uima-ducc/trunk/uima-ducc-orchestrator/src/main/java/org/apache/uima/ducc/orchestrator/jd/scheduler/JdReservation.java
Author: degenaro
Date: Fri Jun 24 14:24:20 2016
New Revision: 1750120
URL: http://svn.apache.org/viewvc?rev=1750120&view=rev
Log:
UIMA-4966 UIMA-DUCC Prepare for 2.1 Release
> fix 2 "Scary" find bugs errors in OR
Modified:
uima/uima-ducc/trunk/uima-ducc-orchestrator/src/main/java/org/apache/uima/ducc/orchestrator/jd/scheduler/JdReservation.java
Modified: uima/uima-ducc/trunk/uima-ducc-orchestrator/src/main/java/org/apache/uima/ducc/orchestrator/jd/scheduler/JdReservation.java
URL: http://svn.apache.org/viewvc/uima/uima-ducc/trunk/uima-ducc-orchestrator/src/main/java/org/apache/uima/ducc/orchestrator/jd/scheduler/JdReservation.java?rev=1750120&r1=1750119&r2=1750120&view=diff
==============================================================================
--- uima/uima-ducc/trunk/uima-ducc-orchestrator/src/main/java/org/apache/uima/ducc/orchestrator/jd/scheduler/JdReservation.java (original)
+++ uima/uima-ducc/trunk/uima-ducc-orchestrator/src/main/java/org/apache/uima/ducc/orchestrator/jd/scheduler/JdReservation.java Fri Jun 24 14:24:20 2016
@@ -140,7 +140,7 @@ public class JdReservation extends JdRes
NodeIdentity retVal = null;
ConcurrentHashMap<DuccId, SizeBytes> map = getMap();
if(jdId != null) {
- synchronized(map) {
+ synchronized(this) {
if(!map.containsKey(jdId)) {
if(!isFull()) {
map.put(jdId, size);
@@ -160,7 +160,7 @@ public class JdReservation extends JdRes
NodeIdentity retVal = null;
ConcurrentHashMap<DuccId, SizeBytes> map = getMap();
if(jdId != null) {
- synchronized(map) {
+ synchronized(this) {
if(map.containsKey(jdId)) {
map.remove(jdId);
retVal = getNodeIdentity();