You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by si...@apache.org on 2019/04/30 21:36:15 UTC
[sling-org-apache-sling-feature-cpconverter] 19/29: removed unused
stream
This is an automated email from the ASF dual-hosted git repository.
simonetripodi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-feature-cpconverter.git
commit 99c75045a65db3e73aea22686a01825c5b7526ad
Author: stripodi <st...@192.168.1.111>
AuthorDate: Fri Apr 26 14:30:44 2019 +0200
removed unused stream
---
.../apache/sling/feature/cpconverter/handlers/BundleEntryHandler.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/main/java/org/apache/sling/feature/cpconverter/handlers/BundleEntryHandler.java b/src/main/java/org/apache/sling/feature/cpconverter/handlers/BundleEntryHandler.java
index 8412eb6..860a1a4 100644
--- a/src/main/java/org/apache/sling/feature/cpconverter/handlers/BundleEntryHandler.java
+++ b/src/main/java/org/apache/sling/feature/cpconverter/handlers/BundleEntryHandler.java
@@ -19,7 +19,6 @@ package org.apache.sling.feature.cpconverter.handlers;
import static java.util.Objects.requireNonNull;
import static org.apache.jackrabbit.vault.packaging.PackageProperties.NAME_VERSION;
-import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.util.Properties;
import java.util.jar.JarEntry;
@@ -56,8 +55,7 @@ public final class BundleEntryHandler extends AbstractRegexEntryHandler {
Properties properties = new Properties();
- try (JarInputStream jarInput = new JarInputStream(archive.openInputStream(entry));
- ByteArrayOutputStream baos = new ByteArrayOutputStream()) {
+ try (JarInputStream jarInput = new JarInputStream(archive.openInputStream(entry))) {
JarEntry jarEntry;
while ((jarEntry = jarInput.getNextJarEntry()) != null) {
String entryName = jarEntry.getName();