sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1649502 - /sling/trunk/installer/it/src/test/java/org/apache/sling/installer/it/ConfigInstallTest.java
Date Mon, 05 Jan 2015 11:12:59 GMT
Author: cziegeler
Date: Mon Jan  5 11:12:59 2015
New Revision: 1649502

URL: http://svn.apache.org/r1649502
Log:
Make shared variable volatile

Modified:
    sling/trunk/installer/it/src/test/java/org/apache/sling/installer/it/ConfigInstallTest.java

Modified: sling/trunk/installer/it/src/test/java/org/apache/sling/installer/it/ConfigInstallTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/installer/it/src/test/java/org/apache/sling/installer/it/ConfigInstallTest.java?rev=1649502&r1=1649501&r2=1649502&view=diff
==============================================================================
--- sling/trunk/installer/it/src/test/java/org/apache/sling/installer/it/ConfigInstallTest.java
(original)
+++ sling/trunk/installer/it/src/test/java/org/apache/sling/installer/it/ConfigInstallTest.java
Mon Jan  5 11:12:59 2015
@@ -49,8 +49,8 @@ public class ConfigInstallTest extends O
 
     private final static long TIMEOUT = 5000L;
     private final List<ConfigurationEvent> events = new LinkedList<ConfigurationEvent>();
-    private List<ServiceRegistration<?>> serviceRegistrations = new ArrayList<ServiceRegistration<?>>();
-    private int installationEvents = 0;
+    private final List<ServiceRegistration<?>> serviceRegistrations = new ArrayList<ServiceRegistration<?>>();
+    private volatile int installationEvents = 0;
     private static final AtomicInteger counter = new AtomicInteger();
 
     @org.ops4j.pax.exam.Configuration



Mime
View raw message