ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1524968 - /ace/trunk/org.apache.ace.agent/src/org/apache/ace/agent/impl/FeedbackStoreManager.java
Date Fri, 20 Sep 2013 10:32:55 GMT
Author: jawi
Date: Fri Sep 20 10:32:55 2013
New Revision: 1524968

URL: http://svn.apache.org/r1524968
Log:
ACE-381 - do not close current store.

Modified:
    ace/trunk/org.apache.ace.agent/src/org/apache/ace/agent/impl/FeedbackStoreManager.java

Modified: ace/trunk/org.apache.ace.agent/src/org/apache/ace/agent/impl/FeedbackStoreManager.java
URL: http://svn.apache.org/viewvc/ace/trunk/org.apache.ace.agent/src/org/apache/ace/agent/impl/FeedbackStoreManager.java?rev=1524968&r1=1524967&r2=1524968&view=diff
==============================================================================
--- ace/trunk/org.apache.ace.agent/src/org/apache/ace/agent/impl/FeedbackStoreManager.java
(original)
+++ ace/trunk/org.apache.ace.agent/src/org/apache/ace/agent/impl/FeedbackStoreManager.java
Fri Sep 20 10:32:55 2013
@@ -398,7 +398,12 @@ public class FeedbackStoreManager {
             }
         }
 
-        return stores.toArray(new FeedbackStore[0]);
+        // replace the last reference to the current store to make sure there are no multiple
FeedbackStores for one
+        // file
+        if (stores.size() >= 1 && m_currentStore.getId() == storeId) {
+            stores.set(stores.size() - 1, m_currentStore);
+        }
+        return stores.toArray(new FeedbackStore[stores.size()]);
     }
 
     /**



Mime
View raw message