incubator-aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r1031344 - /incubator/aries/trunk/blueprint/blueprint-api/src/main/java/org/osgi/service/blueprint/container/BlueprintEvent.java
Date Thu, 04 Nov 2010 23:22:39 GMT
Author: not
Date: Thu Nov  4 23:22:39 2010
New Revision: 1031344

URL: http://svn.apache.org/viewvc?rev=1031344&view=rev
Log:
ARIES-481 Clone dependencies array when passed into blueprint event. This fixes a find bugs
reported error.

Modified:
    incubator/aries/trunk/blueprint/blueprint-api/src/main/java/org/osgi/service/blueprint/container/BlueprintEvent.java

Modified: incubator/aries/trunk/blueprint/blueprint-api/src/main/java/org/osgi/service/blueprint/container/BlueprintEvent.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/blueprint/blueprint-api/src/main/java/org/osgi/service/blueprint/container/BlueprintEvent.java?rev=1031344&r1=1031343&r2=1031344&view=diff
==============================================================================
--- incubator/aries/trunk/blueprint/blueprint-api/src/main/java/org/osgi/service/blueprint/container/BlueprintEvent.java
(original)
+++ incubator/aries/trunk/blueprint/blueprint-api/src/main/java/org/osgi/service/blueprint/container/BlueprintEvent.java
Thu Nov  4 23:22:39 2010
@@ -226,7 +226,8 @@ public class BlueprintEvent {
 		this.timestamp = System.currentTimeMillis();
 		this.bundle = bundle;
 		this.extenderBundle = extenderBundle;
-        this.dependencies = dependencies;
+	    this.dependencies = dependencies == null ? null
+                        : (String[]) dependencies.clone();;
 		this.cause = cause;
 		this.replay = false;
 		if (bundle == null) {



Mime
View raw message