commit | 57622b98b8c00f46192357f8632a4d121dc1766a | [log] [tgz] |
---|---|---|
author | Stuart McCulloch <mcculls@apache.org> | Fri Jul 01 11:57:08 2011 +0000 |
committer | Stuart McCulloch <mcculls@apache.org> | Fri Jul 01 11:57:08 2011 +0000 |
tree | 7b2c5689989be05aa813740562ec35dee06d4526 | |
parent | da388105ecb03e28088a78b3a055dced04b49d8a [diff] |
Remove Java6-only method call git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1141909 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java b/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java index f5402a6..1eadcb8 100644 --- a/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java +++ b/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
@@ -502,9 +502,9 @@ stringProperties.setProperty( key, value ); } } - StringWriter writer = new StringWriter(); - stringProperties.store( writer, null ); - buf.append( writer ); + ByteArrayOutputStream out = new ByteArrayOutputStream(); + stringProperties.store( out, null ); // properties encoding is 8859_1 + buf.append( out.toString( "8859_1" ) ); buf.append( "#-----------------------------------------------------------------------" + NL ); } catch ( Throwable e )