commit | 92b1553624432526c9c25f758654188ab2c2ee76 | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Mon Aug 08 16:05:28 2011 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Mon Aug 08 16:05:28 2011 +0000 |
tree | f0e032f56d82d768db2cbc171efeac9526df9f29 | |
parent | 3b4c7ccd786e50d383bbf74b3777c4be2d3f7d88 [diff] |
Use singleton list. (FELIX-2950) git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1155002 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/Felix.java b/framework/src/main/java/org/apache/felix/framework/Felix.java index 8935760..f3d9dc8 100644 --- a/framework/src/main/java/org/apache/felix/framework/Felix.java +++ b/framework/src/main/java/org/apache/felix/framework/Felix.java
@@ -2560,8 +2560,7 @@ { try { - List<Bundle> list = new ArrayList<Bundle>(1); - list.add(bundle); + List<Bundle> list = Collections.singletonList((Bundle) bundle); refreshPackages(list, null); } catch (Exception ex)