commit | 6e85c705d2c1f05879de8647fa736f4d30aafeb7 | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Thu Aug 23 14:03:58 2007 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Thu Aug 23 14:03:58 2007 +0000 |
tree | 96a5613e36fd4e02c2e8d8016c9a612ed78df74f | |
parent | abd06a797ae72df28b02c4462ee557e3dd82e303 [diff] |
Modified BundleImpl.getHeaders(Locale) to accept a null locale. (FELIX-346) git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@568999 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/BundleImpl.java b/framework/src/main/java/org/apache/felix/framework/BundleImpl.java index 5de3b50..71d1e61 100644 --- a/framework/src/main/java/org/apache/felix/framework/BundleImpl.java +++ b/framework/src/main/java/org/apache/felix/framework/BundleImpl.java
@@ -134,6 +134,12 @@ ((SecurityManager) sm).checkPermission(new AdminPermission(this, AdminPermission.METADATA)); } + + if (locale == null) + { + locale = Locale.getDefault().toString(); + } + return m_felix.getBundleHeaders(this, locale); }