mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-17 18:51:10 +01:00
Remove explicit default constructor
This commit is contained in:
@@ -33,13 +33,10 @@ import java.nio.file.Path;
|
|||||||
import java.util.zip.ZipEntry;
|
import java.util.zip.ZipEntry;
|
||||||
import java.util.zip.ZipInputStream;
|
import java.util.zip.ZipInputStream;
|
||||||
|
|
||||||
class SmpDescriptorExtractor {
|
class SmpDescriptorExtractor {
|
||||||
|
|
||||||
public SmpDescriptorExtractor() {
|
InstalledPluginDescriptor extractPluginDescriptor(Path file) throws IOException {
|
||||||
}
|
try (ZipInputStream zipInputStream = new ZipInputStream(Files.newInputStream(file), StandardCharsets.UTF_8)) {
|
||||||
|
|
||||||
InstalledPluginDescriptor extractPluginDescriptor(Path file) throws IOException {
|
|
||||||
try (ZipInputStream zipInputStream = new ZipInputStream(Files.newInputStream(file), StandardCharsets.UTF_8)) {
|
|
||||||
ZipEntry nextEntry;
|
ZipEntry nextEntry;
|
||||||
while ((nextEntry = zipInputStream.getNextEntry()) != null) {
|
while ((nextEntry = zipInputStream.getNextEntry()) != null) {
|
||||||
if ("META-INF/scm/plugin.xml".equals(nextEntry.getName())) {
|
if ("META-INF/scm/plugin.xml".equals(nextEntry.getName())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user